def handle(msg): #Wrapper for the outsourced and more advanced handle function
try:
handlefile.handle(msg, bot, reimport)
except:
os.system("mv handlefile.py.bak handlefile.py; rm handlefile.pyc")
try:
reload(handlefile)
except:
import imp
imp.reload(handlefile)
bot.sendMessage(msg["chat"]["id"], "Launch failed. Loaded Backup. Kick the Bot at the next Failure")
评论列表
文章目录