mirror of
https://github.com/idanoo/discord-keyword-bot
synced 2025-07-28 18:39:11 +00:00
Fix synxtax
This commit is contained in:
parent
2fd99c369c
commit
05e10e852a
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue