1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-10 13:00:40 +08:00

fix command rule

This commit is contained in:
源文雨
2022-10-04 16:34:25 +08:00
parent 5633f01473
commit 63a0752c61
2 changed files with 8 additions and 4 deletions

View File

@@ -76,6 +76,7 @@ func match(ctx *Ctx, matchers []*Matcher) {
if ctx.Message != nil && ctx.Message.Text != "" { // 确保无空
ctx.IsToMe = func(ctx *Ctx) bool {
if ctx.Message.Chat.IsPrivate() {
log.Debugln("[event] private event")
return true
}
name := ctx.Caller.Self.String()