call commandUsed with every command

This commit is contained in:
lyx0 2021-10-20 00:33:17 +02:00
parent ff16f4fd8f
commit 6f94890a3d

View file

@ -13,6 +13,8 @@ import (
func Command(message twitch.PrivateMessage, nb *bot.Bot) {
logrus.Info("fn Command")
utils.CommandUsed()
// commandName is the actual command name without the prefix.
commandName := strings.ToLower(strings.SplitN(message.Message, " ", 3)[0][2:])