def __init__(self):
super().__init__(command_prefix=commands.when_mentioned_or('b!'), description=DESCRIPTION)
self.bot_token = config.TOKEN
self.api_key = config.API
for extension in STARTUP_EXTENSIONS:
try:
self.load_extension(extension)
except Exception as exception:
exc = '{}: {}'.format(type(exception).__name__, exception)
print('Failed to load extension {}\n{}'.format(extension, exc))
评论列表
文章目录