From 16acf9e70b816eabdde13814a97f2d4f8cb7556f Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Sat, 16 Jan 2021 11:06:44 +0300 Subject: [PATCH] Remove [BOT] prefix --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index d64d3e1..8ccda63 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ const channel = "#ctf" const ( pattern = "(?i)\\b(cat|gato|miau|meow|garfield|lolcat)[s|z]{0,1}\\b" - msgPrefix = "[BOT] I love cats! Here's a fact: %s" + msgPrefix = "I love cats! Here's a fact: %s" ) type catFact struct { @@ -41,10 +41,10 @@ func main() { e.Connection.Privmsg("nickserv", "identify "+os.Getenv("CTF2021PASS")) e.Connection.Join(channel) - e.Connection.Privmsg(channel, `[BOT] I'm a cat facts bot!`) - e.Connection.Privmsg(channel, `[BOT] Inspired from https://github.com/go-chat-bot/plugins/blob/master/catfacts/catfacts.go`) - e.Connection.Privmsg(channel, `[BOT] Try cat /etc/passwd ^_^`) - e.Connection.Privmsg(channel, `[BOT] Source code and issue tracker: https://gitea.difrex.ru/CTF2021/irc_bot`) + e.Connection.Privmsg(channel, `I'm a cat facts bot!`) + e.Connection.Privmsg(channel, `Inspired from https://github.com/go-chat-bot/plugins/blob/master/catfacts/catfacts.go`) + e.Connection.Privmsg(channel, `Try cat /etc/passwd ^_^`) + e.Connection.Privmsg(channel, `Source code and issue tracker: https://gitea.difrex.ru/CTF2021/irc_bot`) }) irccon.AddCallback("PRIVMSG", func(e *irc.Event) {