From 3050bb3abf1b065e2cae5ae90ee4f81303c8e806 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Mon, 25 May 2020 13:23:19 -0700 Subject: [PATCH] prevent responses from bot nick --- pinhook/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pinhook/bot.py b/pinhook/bot.py index 647f844..39999d0 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -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'