Пример #1
0
def main():
    command_prefix = Settings.app_defaults("cmd_prefix")
    description = Settings.app_defaults("description")
    ashe = Bot(command_prefix=command_prefix, description=description)
    ashe.run()
Пример #2
0
 async def on_ready(self):
     prefix = Settings.app_defaults("cmd_prefix")
     Logger.info(logger,
                 f"{self.user.name} (ID: {self.user.id}) is now online.")
     status = Settings.app_defaults("status").format(prefix=prefix)
     await self.change_presence(activity=discord.Game(name=status))