This commit is contained in:
shoopea
2021-12-08 19:54:01 +08:00
parent 14f65a433b
commit c6a235e436
2 changed files with 5 additions and 5 deletions

2
bot.go
View File

@@ -175,7 +175,7 @@ func botOffline(m *tb.Message) {
return
}
r := regexp.MustCompile("^\\/give @(?P<Username>[a-zA-Z0-9]+)")
r := regexp.MustCompile("^\\/offline @(?P<Username>[a-zA-Z0-9]+)")
if !r.MatchString(m.Text) {
bot.SendChat(m.Chat.ID, "Wrong format.")