add ping command

This commit is contained in:
lyx0 2021-10-19 22:39:25 +02:00
parent 3f5e24f8a0
commit 1e4e56ddf6

View file

@ -5,6 +5,7 @@ import (
"github.com/gempir/go-twitch-irc/v2"
"github.com/lyx0/nourybot/cmd/bot"
"github.com/lyx0/nourybot/pkg/commands"
"github.com/sirupsen/logrus"
)
@ -35,6 +36,8 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
nb.Send(message.Channel, cmdParams[1])
return
}
case "ping":
commands.Ping(message.Channel, nb)
}
}