StephanAkkerman / axie-manager-bot

The self-hosted Discord bot we are using in the Axie Manager server. It consists of multiple handy features for managing your scholars in Axie Infinity and being able to use it for multiple managers.
https://www.instagram.com/axie_manager/
MIT License
5 stars 3 forks source link

Remove all hardcoding for channels to a new file, maybe config.py? #123

Closed StephanAkkerman closed 2 years ago

StephanAkkerman commented 2 years ago

Change this especially

    channel = discord.utils.get(
        self.bot.get_all_channels(),
        guild__name="Axie Manager Scholar Group"
        if self.bot.user.id == 892855262124326932
        else "Bot Test Server",
        name="šŸ†ā”ƒleaderboard",
    )
StephanAkkerman commented 2 years ago

Maybe use a .yaml file for readability. config.yaml:

SERVER:
  NAME:
  ID:

LEADERBOARD:
   ENABLED: TRUE
StephanAkkerman commented 2 years ago

If something is enabled, skip it in main.py