Added TehKuh bouncer event

This commit is contained in:
mrhanky 2017-07-06 18:37:28 +02:00
parent 8d3afdb00d
commit df1d48b395
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -23,6 +23,13 @@ class Useless(DatabasePlugin):
'keep your woahs to yourself',
)
#@irc3.event(r':TehKuh!TehKuh@Clk-48466C1F.dyn.telefonica.de JOIN :(?P<target>\S+')
@irc3.event(r'(?i)^:(?P<mask>\S+) JOIN :(?P<target>#\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<target>\S+) :.*(woah|whoa).*$')
def woah(self, target: str):
"""Colorize words in a sentence with rainbow colors."""