diff --git a/sopel_modules/SpiceBot_Restart/Restart.py b/sopel_modules/SpiceBot_Restart/Restart.py index 3e03ee8..b9d2863 100644 --- a/sopel_modules/SpiceBot_Restart/Restart.py +++ b/sopel_modules/SpiceBot_Restart/Restart.py @@ -22,4 +22,5 @@ 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()) - spicebot_reload(bot) + # service_manip(bot, bot.nick, 'restart', 'SpiceBot_Restart') + spicebot_reload(bot, 'SpiceBot_Restart') diff --git a/sopel_modules/SpiceBot_SBTools/__init__.py b/sopel_modules/SpiceBot_SBTools/__init__.py index 012b81b..12a3c21 100644 --- a/sopel_modules/SpiceBot_SBTools/__init__.py +++ b/sopel_modules/SpiceBot_SBTools/__init__.py @@ -251,9 +251,10 @@ def channel_list_current(bot): """Environment Functions""" -def spicebot_reload(bot): - bot.reload_plugins() - bot.write(('NOTICE', bot.nick), '001 Foo :Hello') +def spicebot_reload(bot, log_from='service_manip'): + service_manip(bot, bot.nick, 'restart', log_from) + # bot.reload_plugins() + # bot.write(('NOTICE', bot.nick), '001 Foo :Hello') def service_manip(bot, servicename, dowhat, log_from='service_manip'): diff --git a/sopel_modules/SpiceBot_Update/Update.py b/sopel_modules/SpiceBot_Update/Update.py index e3ca602..96f3be6 100644 --- a/sopel_modules/SpiceBot_Update/Update.py +++ b/sopel_modules/SpiceBot_Update/Update.py @@ -61,7 +61,8 @@ def nickname_comand_chanstats(bot, trigger): if commandused == 'deps': spicebot_update(bot, "True") - spicebot_reload(bot) + # service_manip(bot, bot.nick, 'restart', 'SpiceBot_Update') + spicebot_reload(bot, 'SpiceBot_Update') def spicebot_update(bot, deps="False"):