mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
call commandUsed with every command
This commit is contained in:
parent
ff16f4fd8f
commit
6f94890a3d
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ import (
|
||||||
func Command(message twitch.PrivateMessage, nb *bot.Bot) {
|
func Command(message twitch.PrivateMessage, nb *bot.Bot) {
|
||||||
logrus.Info("fn Command")
|
logrus.Info("fn Command")
|
||||||
|
|
||||||
|
utils.CommandUsed()
|
||||||
|
|
||||||
// commandName is the actual command name without the prefix.
|
// commandName is the actual command name without the prefix.
|
||||||
commandName := strings.ToLower(strings.SplitN(message.Message, " ", 3)[0][2:])
|
commandName := strings.ToLower(strings.SplitN(message.Message, " ", 3)[0][2:])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue