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.
|
Get all messages for all open trades or a given trade.
|
||||||
"""
|
"""
|
||||||
if length == 1:
|
if length == 1:
|
||||||
messages = agora.get_all_messages()
|
messages = agora.get_all_messages(send_irc=False)
|
||||||
if not messages:
|
if not messages:
|
||||||
msg("No messages.")
|
msg("No messages.")
|
||||||
for message_id in messages:
|
for message_id in messages:
|
||||||
|
@ -118,3 +118,15 @@ class IRCCommands(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def run(cmd, spl, length, authed, msg):
|
def run(cmd, spl, length, authed, msg):
|
||||||
msg("Pong!")
|
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