aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/free.py6
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