mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-06 05:16:38 +08:00
fix(bot): complete command flow coverage
This commit is contained in:
@@ -110,4 +110,9 @@ func TestTelegramCommandFiltering(t *testing.T) {
|
||||
if telegramSupportedCommand("/签到") {
|
||||
t.Fatal("unrelated group bot command should not be handled")
|
||||
}
|
||||
for _, cmd := range []string{"/signin", "/redeem", "/gencode", "/users", "/renew_user", "/delete_user", "/cleanup_rule"} {
|
||||
if !telegramSupportedCommand(cmd) {
|
||||
t.Fatalf("%s should be supported so group slash commands get feedback", cmd)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user