This commit is contained in:
mrhanky 2017-05-29 23:21:42 +02:00
parent 8755e58c4e
commit 84d0a30a52
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -37,10 +37,10 @@ class Useless(Plugin):
def same(self, channel: str): def same(self, channel: str):
self.bot.privmsg(channel, 'same') self.bot.privmsg(channel, 'same')
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :\[(?P<data>.*)\]$') @irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :\[(?P<msg>.*)\]$')
def intensifies(self, channel: str, data: str): def intensifies(self, channel: str, msg: str):
self.bot.privmsg(channel, '\x02[{data} INTENSIFIES]'.format( self.bot.privmsg(channel, '\x02[{msg} INTENSIFIES]'.format(
data=data.upper())) msg=msg.upper()))
@command @command
def storyofpomfface(self, mask: IrcString, channel: IrcString, def storyofpomfface(self, mask: IrcString, channel: IrcString,
@ -70,8 +70,8 @@ class Useless(Plugin):
%%jn %%jn
""" """
choice = random.choice(['3Ja', '5Nein']) choice = random.choice(['3Ja', '5Nein'])
return '{nick}: \x02\x03%s'.format(choice=choice, return '{nick}: \x02\x03{choice}'.format(nick=mask.nick,
nick=mask.nick) choice=choice)
@command @command
def kiss(self, mask: IrcString, channel: IrcString, args: DocOptDict): def kiss(self, mask: IrcString, channel: IrcString, args: DocOptDict):