prevent responses from bot nick

pull/74/head
Mallory Hancock 2020-05-25 13:23:19 -07:00
parent 29bd55f142
commit 3050bb3abf
1 changed files with 2 additions and 0 deletions

View File

@ -249,6 +249,8 @@ class Bot(irc.bot.SingleServerIRCBot):
def process_event(self, c, e):
nick = e.source.nick
if nick == self.bot_nick:
pass
text = e.arguments[0]
if e.type == 'privmsg' or e.type == 'pubmsg':
msg_type = 'message'