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):
self.bot.privmsg(channel, 'same')
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :\[(?P<data>.*)\]$')
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<channel>\S+) :\[(?P<msg>.*)\]$')
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):