From b3393302befdbe52afdf6fce88acc3e002505a3b Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 4 Jul 2020 03:11:44 +0100 Subject: [PATCH] Adding more commentary --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9762b632..d268a5f2 100644 --- a/main.py +++ b/main.py @@ -29,9 +29,11 @@ if __name__ == '__main__': @client.event async def on_message(message): + # Making sure that the bot does not take in its own messages if message.author.bot: return + # Processing the message await client.process_commands(message) @@ -49,7 +51,7 @@ async def on_ready(): @client.command(name="ping", aliases=["Ping"]) @is_owner() async def ping(ctx): - # Send the latency of the bot (ms) + """Send the latency of the bot (ms)""" await ctx.send(f'Ping Pong! {round(client.latency * 1000)}ms')