From 0e1f6264e72097dc6992839664b052144cd0093a Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Sun, 10 Jan 2021 05:11:49 -0600 Subject: [PATCH] Update linking.py --- cogs/linking.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/linking.py b/cogs/linking.py index 17619c2..2adb251 100644 --- a/cogs/linking.py +++ b/cogs/linking.py @@ -14,8 +14,10 @@ class Linking(commands.Cog): def __init__(self, bot): self.bot = bot + guild_id = int(os.getenv('guild_id')) - async def link_account(self, message): + @commands.Cog.listener() + async def on_message(self, message): try: guild_id print(str(guild_id) + "exists")