diff options
| author | 2019-01-09 18:10:03 -0500 | |
|---|---|---|
| committer | 2019-01-09 18:10:03 -0500 | |
| commit | 0f85110040e70376838b380579cac2ccad007914 (patch) | |
| tree | 3b2306e4b851635d7bf46e04ea05905d1b5ccbf5 | |
| parent | Add exemption from cooldown for helpers (diff) | |
Put channel category id constant back in class
| -rw-r--r-- | bot/cogs/free.py | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/cogs/free.py b/bot/cogs/free.py index 6b06eaa4c..a66a37f1b 100644 --- a/bot/cogs/free.py +++ b/bot/cogs/free.py @@ -10,12 +10,14 @@ from bot.constants import Categories, Free, Roles  log = logging.getLogger(__name__) -PYTHON_HELP_ID = Categories.python_help  TIMEOUT = Free.activity_timeout  class Free:      """Tries to figure out which help channels are free.""" + +    PYTHON_HELP_ID = Categories.python_help +      @command(name="free", aliases=('f',))      @cooldown(1, 60.0, BucketType.channel)      async def free(self, ctx: Context, user: Member = None, seek: int = 2): @@ -34,7 +36,7 @@ class Free:          in an active channel, and we want the message before that happened.          """          free_channels = [] -        python_help = utils.get(ctx.guild.categories, id=PYTHON_HELP_ID) +        python_help = utils.get(ctx.guild.categories, id=self.PYTHON_HELP_ID)          if user is not None and seek == 2:              seek = 3  |