diff --git a/pkg/handlers/command.go b/pkg/handlers/command.go index dd2222c..e8d3f0e 100644 --- a/pkg/handlers/command.go +++ b/pkg/handlers/command.go @@ -154,6 +154,14 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u case "pingme": commands.Pingme(message.Channel, message.User.DisplayName, twitchClient) 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": if msgLen == 1 { twitchClient.Say(message.Channel, "Usage: ()profilepicture [user]")