mirror of
https://github.com/wownero/tippero.git
synced 2026-12-02 05:24:05 +01: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:
@@ -104,6 +104,9 @@ def UpdateCoin(param):
|
||||
log_error('UpdateCoin: Failed to get bulk payments: %s' % str(e))
|
||||
last_wallet_update_time = time.time()
|
||||
|
||||
def Deposit(nick,chan,cmd):
|
||||
Help(nick,chan)
|
||||
|
||||
def Help(nick,chan):
|
||||
SendTo(nick, "You can send %s to your account:" % coinspecs.name);
|
||||
SendTo(nick, " Address: %s" % GetTipbotAddress())
|
||||
@@ -113,5 +116,12 @@ RegisterModule({
|
||||
'name': __name__,
|
||||
'help': Help,
|
||||
})
|
||||
RegisterCommand({
|
||||
'module': __name__,
|
||||
'name': 'deposit',
|
||||
'function': Deposit,
|
||||
'admin': True,
|
||||
'help': "Show instructions about depositing %s" % coinspecs.name
|
||||
})
|
||||
RegisterIdleFunction(__name__,UpdateCoin)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user