main.py 文件源码

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

项目:Turbo 作者: jaydenkieran 项目源码 文件源码
def run(self, token):
        """
        Override's discord.py's function for running the bot
        """
        try:
            super().run(token, bot=(not self.config.selfbot))
        except discord.LoginFailure:
            log.critical("Incorrect login token")
            if not self.config.selfbot:
                log.critical(
                    "Using your own token? Change 'selfbot' to 'True' in the config")
            else:
                log.critical(
                    "Using an OAuth account? Change 'selfbot' to 'False' in the config")
        except discord.HTTPException as e:
            log.critical(e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号