mirror of
https://github.com/idanoo/discord-keyword-bot.git
synced 2024-11-24 17:35:13 +00:00
Fix synxtax
This commit is contained in:
parent
2fd99c369c
commit
05e10e852a
2
bot.py
2
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()
|
||||
|
Loading…
Reference in New Issue
Block a user