diff --git a/cmd/bot/bot.go b/cmd/bot/bot.go index 1b04ff3..ca8e8c9 100644 --- a/cmd/bot/bot.go +++ b/cmd/bot/bot.go @@ -21,9 +21,9 @@ func (b *Bot) Send(target, text string) { return } - // if text[0] == '.' || text[0] == '/' { - // text = ". " + text - // } + if text[0] == '.' || text[0] == '/' || text[0] == '!' { + text = ":tf: " + text + } // If a message is too long for a single twitch // message, split it into two messages. diff --git a/pkg/commands/echo.go b/pkg/commands/echo.go index 71e5904..4447c25 100644 --- a/pkg/commands/echo.go +++ b/pkg/commands/echo.go @@ -3,5 +3,11 @@ package commands import "github.com/lyx0/nourybot/cmd/bot" func Echo(channel, message string, nb *bot.Bot) { + + // if message[0] == '.' || message[0] == '/' || message[0] == '!' { + // nb.Send(channel, ":tf:") + // return + // } + nb.Send(channel, message) }