From 2b7b29794db49fabeab7d79be1de7c9b18950baf Mon Sep 17 00:00:00 2001 From: cazagen Date: Thu, 21 Dec 2017 21:06:04 +0000 Subject: [PATCH] botbot will automatically join a channel when invited --- ircbot/bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ircbot/bot.py b/ircbot/bot.py index 7a356ec..52ee194 100644 --- a/ircbot/bot.py +++ b/ircbot/bot.py @@ -211,3 +211,7 @@ def message(self, channel, msg): msg += " [...]" super().message(channel, msg) + + def on_invite(self, channel, inviter): + if inviter not in self.ignored_users: + self.join(channel)