implant new startup code

This commit is contained in:
deathbybandaid 2019-05-04 19:39:35 -04:00
parent 8cde891e32
commit 1e19f48ed4
2 changed files with 4 additions and 6 deletions

View File

@ -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)

View File

@ -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"):