Remove old command and add redist command
This commit is contained in:
parent
a1a13478cb
commit
8961fe2c42
|
@ -94,31 +94,18 @@ class IRCCommands(object):
|
|||
else:
|
||||
msg(dumps(x["response"]))
|
||||
|
||||
# class brute(object):
|
||||
# name = "brute"
|
||||
# authed = True
|
||||
# helptext = "Use a bruteforce algorithm to create all possible currency and country pairs."
|
||||
#
|
||||
# @staticmethod
|
||||
# def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
|
||||
# for x in agora.dist_bruteforce():
|
||||
# if x["success"]:
|
||||
# msg(f"{x['response']['data']['message']}: {x['response']['data']['ad_id']}")
|
||||
# else:
|
||||
# msg(dumps(x))
|
||||
#
|
||||
# class fillblanks(object):
|
||||
# name = "fillblanks"
|
||||
# authed = True
|
||||
# helptext = "Resume a run of brute by getting all our adverts then filling the blanks."
|
||||
#
|
||||
# @staticmethod
|
||||
# def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
|
||||
# for x in agora.bruteforce_fill_blanks():
|
||||
# if x["success"]:
|
||||
# msg(f"{x['response']['data']['message']}: {x['response']['data']['ad_id']}")
|
||||
# else:
|
||||
# msg(dumps(x))
|
||||
class redist(object):
|
||||
name = "redist"
|
||||
authed = True
|
||||
helptext = "Update all ads with details."
|
||||
|
||||
@staticmethod
|
||||
def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
|
||||
for x in agora.redist_countries():
|
||||
if x["success"]:
|
||||
msg(f"{x[0]['response']['data']['message']}: {x[1]}")
|
||||
else:
|
||||
msg(dumps(x["response"]))
|
||||
|
||||
class stripdupes(object):
|
||||
name = "stripdupes"
|
||||
|
|
Loading…
Reference in New Issue