From ef4bd6078ca0947af9ce025fedac6b9414184710 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 20 Jun 2019 10:11:30 -0400 Subject: [PATCH] better --- sopel_modules/SpiceBot/Commands.py | 3 --- sopel_modules/SpiceBot/Gif.py | 10 +++------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/sopel_modules/SpiceBot/Commands.py b/sopel_modules/SpiceBot/Commands.py index bd12f52..5243a09 100644 --- a/sopel_modules/SpiceBot/Commands.py +++ b/sopel_modules/SpiceBot/Commands.py @@ -260,9 +260,6 @@ class BotCommands(): if addnothing: currentsuccesslines += 0 - if currentsuccesslines: - self.dict['counts'] += 1 - if len(filelinelist): for vcomdict in filelinelist: self.register(vcomdict) diff --git a/sopel_modules/SpiceBot/Gif.py b/sopel_modules/SpiceBot/Gif.py index 94708a7..ca96b80 100644 --- a/sopel_modules/SpiceBot/Gif.py +++ b/sopel_modules/SpiceBot/Gif.py @@ -59,13 +59,9 @@ class BotGif(): if apikey: self.valid_api[gif_api]["apikey"] = apikey - for validgifapi in list(self.valid_api.keys()): - botcommands.dict['counts'] += 1 - command_dict = { - "comtype": "gif_prefix", - "validcoms": [validgifapi] - } - botcommands.register(command_dict) + self.valid_api[gif_api]["comtype"] = "gif_prefix" + self.valid_api[gif_api]["validcoms"] = [self.valid_api[gif_api]["filename"]] + botcommands.register(self.valid_api[gif_api]) def setup_gif(self): botconfig.define_section("SpiceBot_Gif", SpiceBot_Gif_MainSection, validate=False)