mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
rename Ping command
This commit is contained in:
parent
18363b0dee
commit
b9d7dcbeea
2 changed files with 2 additions and 3 deletions
|
@ -7,9 +7,8 @@ import (
|
||||||
"github.com/lyx0/nourybot/pkg/utils"
|
"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())
|
commandCount := fmt.Sprint(utils.GetCommandsUsed())
|
||||||
|
|
||||||
s := fmt.Sprintf("Pong! :) Commands used: %v", commandCount)
|
s := fmt.Sprintf("Pong! :) Commands used: %v", commandCount)
|
||||||
client.Say(channel, s)
|
client.Say(channel, s)
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,6 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client) {
|
||||||
twitchClient.Say(message.Channel, cmdParams[1])
|
twitchClient.Say(message.Channel, cmdParams[1])
|
||||||
return
|
return
|
||||||
case "ping":
|
case "ping":
|
||||||
commands.PingCommand(message.Channel, twitchClient)
|
commands.Ping(message.Channel, twitchClient)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue