Remove old command and add redist command

This commit is contained in:
Mark Veidemanis 2022-02-01 20:50:08 +00:00
parent 81e3232456
commit 3e1990388f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 12 additions and 25 deletions

View File

@ -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"