From 6b7b2df420e77d9e6580241514cd5eb9cdbc6ccc Mon Sep 17 00:00:00 2001 From: moneromooo Date: Sun, 15 Feb 2015 16:46:17 +0000 Subject: [PATCH] withdraw: add the ability to specify an OpenAlias address for deposits --- tipbot/config.py.example | 1 + tipbot/modules/payment.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tipbot/config.py.example b/tipbot/config.py.example index 0336dad..58ef7ad 100644 --- a/tipbot/config.py.example +++ b/tipbot/config.py.example @@ -27,6 +27,7 @@ disable_withdraw_on_error = True payment_confirmations = 6 tipbot_balance_cache_time = 35 # seconds site_game_salt = '' +openalias_address = None admins = ["freenode:moneromooo", "freenode:moneromoo"] diff --git a/tipbot/modules/payment.py b/tipbot/modules/payment.py index 9f47255..54eec72 100644 --- a/tipbot/modules/payment.py +++ b/tipbot/modules/payment.py @@ -166,6 +166,8 @@ def Help(link): link.send_private("You can send %s to your account:" % coinspecs.name); address=GetTipbotAddress() or 'ERROR' link.send_private(" Address: %s" % address) + if config.openalias_address != None: + link.send_private(" (or %s when using OpenAlias)" % config.openalias_address) link.send_private(" Payment ID: %s" % GetPaymentID(link)) link.send_private("Incoming transactions are credited after %d confirmations" % config.payment_confirmations)