mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Module improvements
Register modules, along with their optional help function Allow running ambiguous commands by prefixing with "modulename:"
This commit is contained in:
parent
d7f3ee7f3f
commit
e1c881860f
5 changed files with 103 additions and 42 deletions
|
@ -242,7 +242,17 @@ def RainActive(nick,chan,cmd):
|
|||
SendTo(chan, "An error has occured")
|
||||
return
|
||||
|
||||
def Help(nick,chan):
|
||||
SendTo(nick,'You can tip other people, or rain %s on them' % coinspecs.name)
|
||||
SendTo(nick,'!tip tips a single person, while !rain shares equally between people in the channel')
|
||||
SendTo(nick,'!rainactive tips all within the last N hours, with more recently active people')
|
||||
SendTo(nick,'getting a larger share.')
|
||||
|
||||
|
||||
RegisterModule({
|
||||
'name': __name__,
|
||||
'help': Help,
|
||||
})
|
||||
RegisterCommand({
|
||||
'module': __name__,
|
||||
'name': 'tip',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue