From e5560bb1ed9a26d37f4cc0d830bfaec1445cd30e Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sat, 4 Mar 2023 04:14:00 +0000 Subject: [PATCH] add special !nourybot and ()nourybot command that identifies who made it --- cmd/bot/commands.go | 4 ++++ cmd/bot/main.go | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/cmd/bot/commands.go b/cmd/bot/commands.go index 1db24d7..58e70ec 100644 --- a/cmd/bot/commands.go +++ b/cmd/bot/commands.go @@ -70,6 +70,10 @@ func (app *Application) handleCommand(message twitch.PrivateMessage) { return } + case "nourybot": + common.Send(target, "Lidl Twitch bot made by @nourylul. Prefix: ()", app.TwitchClient) + return + // ()bttv case "bttv": if msgLen < 2 { diff --git a/cmd/bot/main.go b/cmd/bot/main.go index bcd159e..2276abb 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -151,6 +151,12 @@ func main() { app.handleCommand(message) return } + + // Special rule for #pajlada. + if message.Message == "!nourybot" { + common.Send(message.Channel, "Lidl Twitch bot made by @nourylul. Prefix: ()", app.TwitchClient) + } + } })