mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
🐛 修复喊名字功能
This commit is contained in:
parent
639c60ac86
commit
ee38cd2a82
@ -13,7 +13,7 @@ var poke = rate.NewManager(time.Minute*5, 8) // 戳一戳
|
|||||||
|
|
||||||
func init() { // 插件主体
|
func init() { // 插件主体
|
||||||
// 被喊名字
|
// 被喊名字
|
||||||
zero.OnFullMatchGroup(zero.BotConfig.NickName).SetBlock(false).FirstPriority().
|
zero.OnFullMatch("", zero.OnlyToMe).SetBlock(false).FirstPriority().
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
var nickname = zero.BotConfig.NickName[0]
|
var nickname = zero.BotConfig.NickName[0]
|
||||||
time.Sleep(time.Second * 1)
|
time.Sleep(time.Second * 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user