Add the recipient to the account details

This commit is contained in:
2022-04-21 20:45:27 +01:00
parent 7f51c7cb4b
commit 7d9679f2d5
3 changed files with 17 additions and 0 deletions

View File

@@ -939,3 +939,17 @@ class IRCCommands(object):
identifier = spl[1]
verified = ux.verify.get_external_user_id_status(identifier)
msg(f"Verification status: {verified}")
class bankdetails(object):
name = "bankdetails"
authed = True
helptext = "Get the bank details for a platform. Usage: bankdetails <platform> <currency>"
@staticmethod
def run(cmd, spl, length, authed, msg, agora, tx, ux):
if length == 3:
platform = spl[1]
currency = spl[2]
account_info = tx.markets.get_matching_account_details(platform, currency)
bank_details = tx.markets.format_payment_details(currency, account_info, real=True)
msg(bank_details)