From df1d48b39525376c6df219e4ffeb44ff59ef9ef5 Mon Sep 17 00:00:00 2001 From: mrhanky Date: Thu, 6 Jul 2017 18:37:28 +0200 Subject: [PATCH] Added TehKuh bouncer event --- nxy/plugins/useless.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nxy/plugins/useless.py b/nxy/plugins/useless.py index 18c44c4..d30f97e 100644 --- a/nxy/plugins/useless.py +++ b/nxy/plugins/useless.py @@ -23,6 +23,13 @@ class Useless(DatabasePlugin): 'keep your woahs to yourself', ) + #@irc3.event(r':TehKuh!TehKuh@Clk-48466C1F.dyn.telefonica.de JOIN :(?P\S+') + @irc3.event(r'(?i)^:(?P\S+) JOIN :(?P#\S+)$') + def tehkuh(self, mask, target): + nick = IrcString(mask).nick + if 'TehKuh' in mask: + self.bot.privmsg(target, '{}: Bouncer'.format(nick)) + @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :.*(woah|whoa).*$') def woah(self, target: str): """Colorize words in a sentence with rainbow colors."""