Fix synxtax

This commit is contained in:
Daniel Mason 2020-03-21 15:44:00 +13:00
parent 2fd99c369c
commit 05e10e852a

2
bot.py
View File

@ -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()