|
|
|
@ -331,9 +331,9 @@ class IRCCommands(object):
|
|
|
|
|
msg(f"Not a valid asset: {spl[1]}")
|
|
|
|
|
return
|
|
|
|
|
currency = spl[2]
|
|
|
|
|
rtrn = agora.wrap_public_ads(asset, currency)
|
|
|
|
|
for ad in rtrn:
|
|
|
|
|
msg(f"({ad[0]}) {ad[1]} {ad[2]} {ad[4]} {ad[5]}")
|
|
|
|
|
rtrn = agora.get_all_public_ads([asset], [currency])
|
|
|
|
|
for ad in rtrn[currency]:
|
|
|
|
|
msg(f"({ad[0]}) {ad[1]} {ad[2]} {ad[3]} {ad[4]} {ad[5]} {ad[6]}")
|
|
|
|
|
elif length == 4:
|
|
|
|
|
asset = spl[1]
|
|
|
|
|
if asset not in loads(settings.Agora.AssetList):
|
|
|
|
@ -341,9 +341,9 @@ class IRCCommands(object):
|
|
|
|
|
return
|
|
|
|
|
providers = spl[3].split(",")
|
|
|
|
|
currency = spl[2]
|
|
|
|
|
rtrn = agora.wrap_public_ads(asset, currency, providers)
|
|
|
|
|
for ad in rtrn:
|
|
|
|
|
msg(f"({ad[0]}) {ad[1]} {ad[2]} {ad[3]} {ad[4]} {ad[5]}")
|
|
|
|
|
rtrn = agora.get_all_public_ads([asset], [currency], providers)
|
|
|
|
|
for ad in rtrn[currency]:
|
|
|
|
|
msg(f"({ad[0]}) {ad[1]} {ad[2]} {ad[3]} {ad[4]} {ad[5]} {ad[6]}")
|
|
|
|
|
|
|
|
|
|
class cheat(object):
|
|
|
|
|
name = "cheat"
|
|
|
|
|