Add release_url command
This commit is contained in:
parent
266a294e73
commit
0223b2ea7a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue