From 003addc2d866ffc758527ff779680a7e6cb253e4 Mon Sep 17 00:00:00 2001 From: nouryxd <66651385+nouryxd@users.noreply.github.com> Date: Tue, 14 May 2024 02:16:05 +0200 Subject: [PATCH] add say command --- cmd/nourybot/commands.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/nourybot/commands.go b/cmd/nourybot/commands.go index f8384c1..fe82428 100644 --- a/cmd/nourybot/commands.go +++ b/cmd/nourybot/commands.go @@ -380,6 +380,11 @@ func (app *application) handleCommand(message twitch.PrivateMessage) { // 1000 User Level // Admin //------------------------------------ + case "say": + if userLevel >= 1000 { + reply = message.Message[6:len(message.Message)] + } + case "join": if userLevel >= 1000 { go app.AddChannel(cmdParams[1], message)