From 1e19f48ed407267db9512ddde3f1c8becbc5199e Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 4 May 2019 19:39:35 -0400 Subject: [PATCH] implant new startup code --- sopel_modules/SpiceBot_Restart/Restart.py | 5 ++--- sopel_modules/SpiceBot_Update/Update.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sopel_modules/SpiceBot_Restart/Restart.py b/sopel_modules/SpiceBot_Restart/Restart.py index 1d0b26b..3e03ee8 100644 --- a/sopel_modules/SpiceBot_Restart/Restart.py +++ b/sopel_modules/SpiceBot_Restart/Restart.py @@ -6,7 +6,7 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi import sopel.module from sopel.config.types import StaticSection, ValidatedAttribute -from sopel_modules.SpiceBot_SBTools import service_manip, bot_logging +from sopel_modules.SpiceBot_SBTools import service_manip, bot_logging, spicebot_reload def shutdown(bot): @@ -22,5 +22,4 @@ def nickname_comand_chanstats(bot, trigger): bot_logging(bot, 'SpiceBot_Restart', "Received command from " + trigger.nick + " to restart") bot.osd("Received command from " + trigger.nick + " to restart. Be Back Soon!", bot.channels.keys()) - # service_manip(bot, bot.nick, 'restart', 'SpiceBot_Restart') - # bot.restart() + spicebot_reload(bot) diff --git a/sopel_modules/SpiceBot_Update/Update.py b/sopel_modules/SpiceBot_Update/Update.py index 1c5a0c2..e3ca602 100644 --- a/sopel_modules/SpiceBot_Update/Update.py +++ b/sopel_modules/SpiceBot_Update/Update.py @@ -10,7 +10,7 @@ import os import spicemanip -from sopel_modules.SpiceBot_SBTools import service_manip, sopel_triggerargs, command_permissions_check, bot_logging +from sopel_modules.SpiceBot_SBTools import service_manip, sopel_triggerargs, command_permissions_check, bot_logging, spicebot_reload class SpiceBot_Update_MainSection(StaticSection): @@ -61,8 +61,7 @@ def nickname_comand_chanstats(bot, trigger): if commandused == 'deps': spicebot_update(bot, "True") - # service_manip(bot, bot.nick, 'restart', 'SpiceBot_Update') - # bot.restart() + spicebot_reload(bot) def spicebot_update(bot, deps="False"):