From 84d0a30a52c3e0ed6ff73d458804792f6f6588d1 Mon Sep 17 00:00:00 2001 From: mrhanky Date: Mon, 29 May 2017 23:21:42 +0200 Subject: [PATCH] Bla --- nxy/plugins/useless.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nxy/plugins/useless.py b/nxy/plugins/useless.py index d7ee0f7..6e5e106 100644 --- a/nxy/plugins/useless.py +++ b/nxy/plugins/useless.py @@ -37,10 +37,10 @@ class Useless(Plugin): def same(self, channel: str): self.bot.privmsg(channel, 'same') - @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :\[(?P.*)\]$') - def intensifies(self, channel: str, data: str): - self.bot.privmsg(channel, '\x02[{data} INTENSIFIES]'.format( - data=data.upper())) + @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :\[(?P.*)\]$') + def intensifies(self, channel: str, msg: str): + self.bot.privmsg(channel, '\x02[{msg} INTENSIFIES]'.format( + msg=msg.upper())) @command def storyofpomfface(self, mask: IrcString, channel: IrcString, @@ -70,8 +70,8 @@ class Useless(Plugin): %%jn """ choice = random.choice(['3Ja', '5Nein']) - return '{nick}: \x02\x03%s'.format(choice=choice, - nick=mask.nick) + return '{nick}: \x02\x03{choice}'.format(nick=mask.nick, + choice=choice) @command def kiss(self, mask: IrcString, channel: IrcString, args: DocOptDict):