Add release_url command

This commit is contained in:
Mark Veidemanis 2021-12-28 13:41:48 +00:00
parent 266a294e73
commit 0223b2ea7a
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 13 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class IRCCommands(object):
Get all messages for all open trades or a given trade.
"""
if length == 1:
messages = agora.get_all_messages()
messages = agora.get_all_messages(send_irc=False)
if not messages:
msg("No messages.")
for message_id in messages:
@ -118,3 +118,15 @@ class IRCCommands(object):
@staticmethod
def run(cmd, spl, length, authed, msg):
msg("Pong!")
class release_url(object):
name = "release_url"
authed = True
@staticmethod
def run(cmd, spl, length, authed, msg, agora, revolut, tx):
trades = agora.dashboard_release_urls()
if not trades:
msg("No trades.")
for trade in trades:
msg(trade)