mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 13:12:35 +01:00
Always bet on black!
This commit is contained in:
parent
5dfb00ff7d
commit
fe9468c0e6
@ -1,3 +1,5 @@
|
|||||||
|
* Added 'roulette' command to Fun plugin.
|
||||||
|
|
||||||
* Added a Channel.lobotomies command to list the channels in which
|
* Added a Channel.lobotomies command to list the channels in which
|
||||||
the bot is lobotomized.
|
the bot is lobotomized.
|
||||||
|
|
||||||
|
@ -502,6 +502,22 @@ class Fun(callbacks.Privmsg):
|
|||||||
s = self._scrambleRe.sub(_subber, text)
|
s = self._scrambleRe.sub(_subber, text)
|
||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
|
|
||||||
|
def roulette(self, irc, msg, args):
|
||||||
|
"""takes no arguments.
|
||||||
|
|
||||||
|
Randomly picks a number from 1 to 6 and if it comes up 1, you get
|
||||||
|
kicked. Otherwise -- *click*
|
||||||
|
"""
|
||||||
|
nick = msg.nick
|
||||||
|
channel = msg.args[0]
|
||||||
|
if random.randint(1, 6) == 1:
|
||||||
|
irc.queueMsg(ircmsgs.kick(channel, nick))
|
||||||
|
else:
|
||||||
|
irc.reply(msg, '*click*')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_code = {
|
_code = {
|
||||||
"A" : ".-",
|
"A" : ".-",
|
||||||
"B" : "-...",
|
"B" : "-...",
|
||||||
|
Loading…
Reference in New Issue
Block a user