From 71f56c5954e93177b33cf1eac6bff69da3469201 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 25 Jun 2020 18:41:16 +0100 Subject: [PATCH] Making sure that people can't echo dms other than owner --- EnsoBot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EnsoBot.py b/EnsoBot.py index 29145a6a..bfd6fb47 100644 --- a/EnsoBot.py +++ b/EnsoBot.py @@ -259,11 +259,13 @@ async def on_message(message): if message.guild is None: # Checking if the owner is sending the message if author == client.owner_id: + # Send message to #general - channel = client.get_channel(721449922838134876) + channel = client.get_channel(663651584399507481) await channel.send(message.content) + else: - # Sends error message if + # Sends error message if the person is not the owner message = await message.channel.send("Sorry, you don't have permission to echo dms!") # Let the user read the message for 2.5 seconds