rename Ping command

This commit is contained in:
lyx0 2021-10-14 18:55:07 +02:00
parent 18363b0dee
commit b9d7dcbeea
2 changed files with 2 additions and 3 deletions

View file

@ -7,9 +7,8 @@ import (
"github.com/lyx0/nourybot/pkg/utils"
)
func PingCommand(channel string, client *twitch.Client) {
func Ping(channel string, client *twitch.Client) {
commandCount := fmt.Sprint(utils.GetCommandsUsed())
s := fmt.Sprintf("Pong! :) Commands used: %v", commandCount)
client.Say(channel, s)
}

View file

@ -46,6 +46,6 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client) {
twitchClient.Say(message.Channel, cmdParams[1])
return
case "ping":
commands.PingCommand(message.Channel, twitchClient)
commands.Ping(message.Channel, twitchClient)
}
}