Always bet on black!

This commit is contained in:
Daniel DiPaolo 2003-12-03 01:43:38 +00:00
parent 5dfb00ff7d
commit fe9468c0e6
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,5 @@
* Added 'roulette' command to Fun plugin.
* Added a Channel.lobotomies command to list the channels in which
the bot is lobotomized.

View File

@ -502,6 +502,22 @@ class Fun(callbacks.Privmsg):
s = self._scrambleRe.sub(_subber, text)
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 = {
"A" : ".-",
"B" : "-...",