Update files
This commit is contained in:
parent
81030d1297
commit
73d8dd543f
5 changed files with 191 additions and 9 deletions
|
|
@ -28,7 +28,7 @@ def usage():
|
|||
# well this is just dumb
|
||||
class RenamingUnpickler(Unpickler):
|
||||
def find_class(self, module, name):
|
||||
if module == "src.core":
|
||||
if module in ("src.core", "supportbot.__main__", "__main__"):
|
||||
module = "supportbot.bot"
|
||||
return super().find_class(module, name)
|
||||
|
||||
|
|
@ -44,6 +44,7 @@ def main(configpath, loglevel=logging.INFO):
|
|||
bot.init(config, db)
|
||||
|
||||
try:
|
||||
start_new_thread(bot.reminder_loop)
|
||||
start_new_thread(bot.run, join=True)
|
||||
except KeyboardInterrupt:
|
||||
logging.info("Interrupted, exiting")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue