From bc6d31db66c6c021f340b90923293683472457f1 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 14 Jul 2020 01:53:02 +0100 Subject: [PATCH] Using variables from settings.py --- cogs/help/verification.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cogs/help/verification.py b/cogs/help/verification.py index b81b51e1..be2128c9 100644 --- a/cogs/help/verification.py +++ b/cogs/help/verification.py @@ -5,6 +5,8 @@ from discord import Colour, Embed from discord.ext import commands from discord.ext.commands import command, is_owner +from settings import enso_guild_ID, enso_verification_ID + # Set up Cog class Verification(commands.Cog): @@ -16,12 +18,11 @@ class Verification(commands.Cog): @commands.Cog.listener() async def on_raw_reaction_add(self, payload): # Get the guild - guild = self.bot.get_guild(663651584399507476) + guild = self.bot.get_guild(enso_guild_ID) # Get the member member = guild.get_member(payload.user_id) - # Getting the channel verification by setting it to #verification - channel = guild.get_channel(728034083678060594) + channel = guild.get_channel(enso_verification_ID) # If the channel is #verification if payload.channel_id == channel.id: