mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
18 lines
309 B
Go
18 lines
309 B
Go
package chat
|
|
|
|
import (
|
|
"time"
|
|
|
|
zero "github.com/wdvxdr1123/ZeroBot"
|
|
)
|
|
|
|
func init() { // 插件主体
|
|
// 戳一戳
|
|
zero.On("notice/notify/poke", zero.OnlyToMe).SetBlock(false).SetPriority(0).
|
|
Handle(func(ctx *zero.Ctx) {
|
|
time.Sleep(time.Second * 1)
|
|
ctx.Send("请不要戳我 >_<")
|
|
return
|
|
})
|
|
}
|