mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
✏️ 一些小改动
This commit is contained in:
parent
b039b1305e
commit
4252548f4c
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
[](https://goreportcard.com/report/github.com/github.com/Yiwen-Chan/ZeroBot-Plugin)
|
[](https://goreportcard.com/report/github.com/github.com/Yiwen-Chan/ZeroBot-Plugin)
|
||||||
[](https://github.com/howmanybots/onebot)
|
[](https://github.com/howmanybots/onebot)
|
||||||
[](https://github.com/wdvxdr1123/ZeroBot)
|
[](https://github.com/wdvxdr1123/ZeroBot)
|
||||||
[](https://raw.githubusercontent.com/Yiwen-Chan/ZeroBot-Plugin/master/LICENSE)
|
[](https://raw.githubusercontent.com/Yiwen-Chan/ZeroBot-Plugin/master/LICENSE)
|
||||||
[](https://jq.qq.com/?_wv=1027&k=QMb7x1mM)
|
[](https://jq.qq.com/?_wv=1027&k=QMb7x1mM)
|
||||||
|
|
||||||
|
|||||||
@ -51,7 +51,7 @@ func init() { // 插件主体
|
|||||||
zero.OnFullMatch("空调开").SetBlock(true).FirstPriority().
|
zero.OnFullMatch("空调开").SetBlock(true).FirstPriority().
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
AirConditSwitch[ctx.Event.GroupID] = true
|
AirConditSwitch[ctx.Event.GroupID] = true
|
||||||
ctx.SendChain(message.Text("☀哔~"))
|
ctx.SendChain(message.Text("❄️哔~"))
|
||||||
})
|
})
|
||||||
zero.OnFullMatch("空调关").SetBlock(true).FirstPriority().
|
zero.OnFullMatch("空调关").SetBlock(true).FirstPriority().
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
@ -68,7 +68,7 @@ func init() { // 插件主体
|
|||||||
temp := ctx.State["regex_matched"].([]string)[1]
|
temp := ctx.State["regex_matched"].([]string)[1]
|
||||||
AirConditTemp[ctx.Event.GroupID], _ = strconv.Atoi(temp)
|
AirConditTemp[ctx.Event.GroupID], _ = strconv.Atoi(temp)
|
||||||
ctx.SendChain(message.Text(
|
ctx.SendChain(message.Text(
|
||||||
"☀风速中", "\n",
|
"❄️风速中", "\n",
|
||||||
"群温度 ", AirConditTemp[ctx.Event.GroupID], "℃",
|
"群温度 ", AirConditTemp[ctx.Event.GroupID], "℃",
|
||||||
))
|
))
|
||||||
return
|
return
|
||||||
@ -88,7 +88,7 @@ func init() { // 插件主体
|
|||||||
}
|
}
|
||||||
if AirConditSwitch[ctx.Event.GroupID] {
|
if AirConditSwitch[ctx.Event.GroupID] {
|
||||||
ctx.SendChain(message.Text(
|
ctx.SendChain(message.Text(
|
||||||
"☀风速中", "\n",
|
"❄️风速中", "\n",
|
||||||
"群温度 ", AirConditTemp[ctx.Event.GroupID], "℃",
|
"群温度 ", AirConditTemp[ctx.Event.GroupID], "℃",
|
||||||
))
|
))
|
||||||
return
|
return
|
||||||
|
|||||||
@ -98,7 +98,8 @@ func (i *Illust) NormalPic(file string) string {
|
|||||||
|
|
||||||
// DetailPic 返回一张带详细信息的图片CQ码
|
// DetailPic 返回一张带详细信息的图片CQ码
|
||||||
func (i *Illust) DetailPic(file string) string {
|
func (i *Illust) DetailPic(file string) string {
|
||||||
return fmt.Sprintf(`[SetuTime] %s 标题:%s
|
return fmt.Sprintf(`[SetuTime] %s
|
||||||
|
标题:%s
|
||||||
插画ID:%d
|
插画ID:%d
|
||||||
画师:%s
|
画师:%s
|
||||||
画师ID:%d
|
画师ID:%d
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user