From c8ba130ba66a2fd49279f78772ef136939a8d1eb Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Sun, 10 Jan 2021 05:25:04 -0600 Subject: [PATCH] Update linking.py --- cogs/linking.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cogs/linking.py b/cogs/linking.py index 34c4b4a..d98c6cb 100644 --- a/cogs/linking.py +++ b/cogs/linking.py @@ -17,12 +17,6 @@ class Linking(commands.Cog): self.guild_id = int(os.getenv('guild_id')) @commands.Cog.listener() - async def on_message(self, message): - try: - print(str(self.guild_id) + "exists") - except NameError: - guild_id=int(os.getenv('guild_id')) - print(str(guild_id) + " created") if message.author != self.bot.user and message.guild == None: channel = message.channel await channel.send("Processing, please wait...") @@ -74,7 +68,7 @@ class Linking(commands.Cog): file.write(json_dumps) file.close() - guild = self.bot.get_guild(guild_id) + guild = self.bot.get_guild(self.guild_id) member = guild.get_member(message.author.id) if member: