add preview alias for thumbnail

This commit is contained in:
lyx0 2021-10-18 20:35:43 +02:00
parent a8abdbdf9a
commit bdd3018a3e

View file

@ -154,6 +154,14 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u
case "pingme": case "pingme":
commands.Pingme(message.Channel, message.User.DisplayName, twitchClient) commands.Pingme(message.Channel, message.User.DisplayName, twitchClient)
return return
case "preview":
if msgLen == 1 {
twitchClient.Say(message.Channel, "Usage: ()preview [channel]")
return
} else {
commands.Thumbnail(message.Channel, cmdParams[1], twitchClient)
return
}
case "profilepicture": case "profilepicture":
if msgLen == 1 { if msgLen == 1 {
twitchClient.Say(message.Channel, "Usage: ()profilepicture [user]") twitchClient.Say(message.Channel, "Usage: ()profilepicture [user]")