mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
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:
parent
0ddf3c5595
commit
209eb76b27
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue