From baaf32a2e02fda429de3dbd70dd5a02a54914ecb Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 2 Feb 2022 12:53:05 +0000 Subject: [PATCH] Fix redist command --- handler/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/commands.py b/handler/commands.py index f573c42..d476e80 100644 --- a/handler/commands.py +++ b/handler/commands.py @@ -102,10 +102,10 @@ class IRCCommands(object): @staticmethod def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify): for x in agora.redist_countries(): - if x["success"]: + if x[0]["success"]: msg(f"{x[0]['response']['data']['message']}: {x[1]}") else: - msg(dumps(x["response"])) + msg(dumps(x[0]["response"])) class stripdupes(object): name = "stripdupes"