mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
implant new startup code
This commit is contained in:
parent
8cde891e32
commit
1e19f48ed4
@ -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)
|
||||
|
||||
@ -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"):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user