proposed changes

This commit is contained in:
Aine
2022-08-27 21:59:58 +03:00
parent c8331e9958
commit 53bc5e6d59
3 changed files with 130 additions and 152 deletions

View File

@@ -13,10 +13,10 @@ func (b *Bot) handle(ctx context.Context) {
return
}
message := strings.TrimSpace(content.Body)
command := b.parseCommand(message)
if command == nil {
cmd := b.parseCommand(message)
if cmd == nil {
return
}
b.handleCommand(ctx, evt, command)
b.handleCommand(ctx, evt, cmd)
}