Add a deposit command to the payment module

It makes it easier to find out how to deposit, since the payment
had no commands, and thus was not included in the modules list
when !commands was used
This commit is contained in:
moneromooo 2015-01-08 15:08:28 +00:00
parent 0ddf3c5595
commit 209eb76b27

View file

@ -104,6 +104,9 @@ def UpdateCoin(param):
log_error('UpdateCoin: Failed to get bulk payments: %s' % str(e)) log_error('UpdateCoin: Failed to get bulk payments: %s' % str(e))
last_wallet_update_time = time.time() last_wallet_update_time = time.time()
def Deposit(nick,chan,cmd):
Help(nick,chan)
def Help(nick,chan): def Help(nick,chan):
SendTo(nick, "You can send %s to your account:" % coinspecs.name); SendTo(nick, "You can send %s to your account:" % coinspecs.name);
SendTo(nick, " Address: %s" % GetTipbotAddress()) SendTo(nick, " Address: %s" % GetTipbotAddress())
@ -113,5 +116,12 @@ RegisterModule({
'name': __name__, 'name': __name__,
'help': Help, 'help': Help,
}) })
RegisterCommand({
'module': __name__,
'name': 'deposit',
'function': Deposit,
'admin': True,
'help': "Show instructions about depositing %s" % coinspecs.name
})
RegisterIdleFunction(__name__,UpdateCoin) RegisterIdleFunction(__name__,UpdateCoin)