add say command

This commit is contained in:
nouryxd 2024-05-14 02:16:05 +02:00
parent 9820b957ac
commit 003addc2d8

View file

@ -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)