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)
评论列表
文章目录