bot.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:deadc0debot 作者: De4dc0de 项目源码 文件源码
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")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号