1 #Module for scrappy that implements some core commands, like 'help'
7 scrap
.register_msg_event(help_cmd
)
9 def help_cmd(c
,list,bot
):
10 """help - Lists all available commands and their docstrings"""
11 if list[4] == "help" and list[3]:
12 #put the events into a set so we can compute the union
13 #Or maybe we should use sets for the events from the start?
18 for event
in bot
.privmsg_events
:
20 for event
in bot
.pubmsg_events
:
23 funcnames
= s1
.union(s2
)
25 for name
in funcnames
:
26 c
.privmsg(list[0],name
)