mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
Merge branch 'master' of https://github.com/FloatTech/ZeroBot-Plugin
This commit is contained in:
commit
9fca69302b
@ -40,11 +40,11 @@ func init() { // 插件主体
|
|||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
var nickname = zero.BotConfig.NickName[0]
|
var nickname = zero.BotConfig.NickName[0]
|
||||||
switch {
|
switch {
|
||||||
case poke.Load(ctx.Event.UserID).AcquireN(3):
|
case poke.Load(ctx.Event.GroupID).AcquireN(3):
|
||||||
// 5分钟共8块命令牌 一次消耗3块命令牌
|
// 5分钟共8块命令牌 一次消耗3块命令牌
|
||||||
time.Sleep(time.Second * 1)
|
time.Sleep(time.Second * 1)
|
||||||
ctx.SendChain(message.Text("请不要戳", nickname, " >_<"))
|
ctx.SendChain(message.Text("请不要戳", nickname, " >_<"))
|
||||||
case poke.Load(ctx.Event.UserID).Acquire():
|
case poke.Load(ctx.Event.GroupID).Acquire():
|
||||||
// 5分钟共8块命令牌 一次消耗1块命令牌
|
// 5分钟共8块命令牌 一次消耗1块命令牌
|
||||||
time.Sleep(time.Second * 1)
|
time.Sleep(time.Second * 1)
|
||||||
ctx.SendChain(message.Text("喂(#`O′) 戳", nickname, "干嘛!"))
|
ctx.SendChain(message.Text("喂(#`O′) 戳", nickname, "干嘛!"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user