diff --git a/bot.py b/bot.py index 2f23067..75a80f5 100644 --- a/bot.py +++ b/bot.py @@ -12,7 +12,7 @@ class MyClient(discord.Client): async def on_message(self, message): if message.channel.id == int(os.getenv("SOURCE_CHANNEL")): if re.match(os.getenv("REGEX_MATCH"), message.content, re.IGNORECASE): - channel = client.get_channel(int(os.getenv("DISCORD_CHANNEL")) + channel = client.get_channel(int(os.getenv("DISCORD_CHANNEL"))) await channel.send(message.content) load_dotenv()