Dusting modules
This commit is contained in:
parent
4bc8bc3c12
commit
4d51bc1fda
20 changed files with 147 additions and 147 deletions
|
@ -14,9 +14,9 @@ from more import Response
|
|||
|
||||
@hook("cmd_hook", "choice")
|
||||
def cmd_choice(msg):
|
||||
if len(msg.cmds) > 1:
|
||||
return Response(random.choice(msg.cmds[1:]),
|
||||
channel=msg.channel,
|
||||
nick=msg.nick)
|
||||
else:
|
||||
if not len(msg.args):
|
||||
raise IRCException("indicate some terms to pick!")
|
||||
|
||||
return Response(random.choice(msg.args),
|
||||
channel=msg.channel,
|
||||
nick=msg.nick)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue