From 865083ad455ad2efb51b9441fb3516f508809702 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 5 May 2019 12:19:23 -0400 Subject: [PATCH 1/2] not to self --- sopel_modules/SpiceBot_Botevents/BotEvents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sopel_modules/SpiceBot_Botevents/BotEvents.py b/sopel_modules/SpiceBot_Botevents/BotEvents.py index b6f88dd..828d696 100644 --- a/sopel_modules/SpiceBot_Botevents/BotEvents.py +++ b/sopel_modules/SpiceBot_Botevents/BotEvents.py @@ -15,6 +15,7 @@ def configure(config): def setup(bot): + # TODO add custom pretrigger events bot_logging(bot, 'Sopel_BotEvents', "Starting Module Events Logging") threading.Thread(target=setup_thread, args=(bot,)).start() From c5fc5222f86969ccf9e8f5c150cf4792cd92b9d8 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 5 May 2019 13:01:32 -0400 Subject: [PATCH 2/2] Update setup for accuracy --- setup.py | 2 +- sopel_modules/SpiceBot_Update/Update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a8fa73e..a65f758 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ if not os.path.exists(stockdir) or not os.path.isdir(stockdir): os.system("sudo mkdir " + stockdir) for pathname in os.listdir(modules_dir): path = os.path.join(modules_dir, pathname) - if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')): + if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')): os.system("sudo mv " + path + " " + stockdir) diff --git a/sopel_modules/SpiceBot_Update/Update.py b/sopel_modules/SpiceBot_Update/Update.py index a6f3998..6ff7272 100644 --- a/sopel_modules/SpiceBot_Update/Update.py +++ b/sopel_modules/SpiceBot_Update/Update.py @@ -91,5 +91,5 @@ def stock_modules_begone(bot): os.system("sudo mkdir " + stockdir) for pathname in os.listdir(modules_dir): path = os.path.join(modules_dir, pathname) - if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')): + if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')): os.system("sudo mv " + path + " " + stockdir)