From 15cfa5bf9473413cb23325e2a65d5f0222a15875 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 18 Feb 2022 20:54:17 -0500 Subject: [PATCH] Added check to see if the user sending ping is itself - This will be important to figure out who is a bot --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index c20698a..05add51 100644 --- a/bot.py +++ b/bot.py @@ -75,7 +75,8 @@ class Bot(commands.Bot): # Test command to see if the bot is on (help command can also be used) @self.command(help="Use this to test if the bot is alive", brief="Sends a 'pong' in response") async def ping(ctx): - await ctx.send('pong') + if ctx.author.id != self.user.id: + await ctx.send('pong') # Command to join the bot the voice channel the user who called the command is in @self.command(help="Use this command to join the bot to your channel",