diff --git a/cmd/nourybot/commands.go b/cmd/nourybot/commands.go index 69896ff..c8d020b 100644 --- a/cmd/nourybot/commands.go +++ b/cmd/nourybot/commands.go @@ -179,7 +179,6 @@ func (app *application) handleCommand(message twitch.PrivateMessage) { } case "ping": reply = commands.Ping(app.Environment) - // ()bttv // ()weather case "weather": @@ -267,6 +266,10 @@ func (app *application) handleCommand(message twitch.PrivateMessage) { if userLevel >= 100 { app.DebugChannelTimers(message.Channel) } + case "eventsub": + if userLevel >= 1000 { + reply = app.listEventSubSubscriptions() + } } // -------------------------------- @@ -388,11 +391,21 @@ func (app *application) handleCommand(message twitch.PrivateMessage) { app.ConvertAndSave(cmdParams[1], cmdParams[2], message) } + case "echo": + if userLevel >= 1000 { + reply = message.Message[7:len(message.Message)] + } + case "say": if userLevel >= 1000 { reply = message.Message[6:len(message.Message)] } + // case "whisper": + // if userLevel >= 1000 { + // go app.sendWhisper(cmdParams[1], message.Message[10:len(message.Message)]) + // } + case "join": if userLevel >= 1000 { go app.AddChannel(cmdParams[1], message) @@ -495,6 +508,13 @@ var helpText = map[string]command{ Level: "0", Usage: "()commands", }, + "conv": { + Name: "conv", + Alias: nil, + Description: "Converts the linked video into an .mp4 file.", + Level: "1000", + Usage: "()conv