Posted by Anonymous Fri 2nd Mar 2007 01:05 - Syntax is Python - 59 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Description:
supybot roulette mod
supybot roulette mod
-
games/plugin.py:129:
-
if self._rouletteChamber == self._rouletteBullet:
-
self._rouletteBullet = random.randrange(0, 6)
-
self._rouletteChamber = random.randrange(0, 6)
-
if irc.nick in irc.state.channels[channel].ops:
-
#irc.queueMsg(ircmsgs.kick(channel, msg.nick, 'BANG!'))
-
irc.queueMsg(ircmsgs.kill(msg.nick, 'BANG!'))
-
else:
-
irc.reply('*BANG* Hey, who put a blank in here?!',
-
prefixNick=False)
-
irc.reply('reloads and spins the chambers.', action=True)
-
else:
-
-
-
ircmsgs.py:534:
-
def kill(nick, msg=None):
-
"""Returns a KILL to kill nick with the message msg."""
-
if conf.supybot.protocols.irc.strictRfc():
-
assert isNick(nick), repr(nick)
-
if msg and not prefix:
-
prefix = msg.prefix
-
return IrcMsg(prefix=prefix, command='KILL',
-
args=(nick), msg=msg)
-
-
-
PermaLink to this entry https://pastebin.co.uk/11271
Posted by Anonymous Fri 2nd Mar 2007 01:05 - Syntax is Python - 59 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0