From bdd3018a3e28e9aa54343cc8e06eec5af7fb3643 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Mon, 18 Oct 2021 20:35:43 +0200 Subject: [PATCH] add preview alias for thumbnail --- pkg/handlers/command.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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]")