Skip to content

Commit

Permalink
Revert "add ping"
Browse files Browse the repository at this point in the history
This reverts commit 0a0e171.
  • Loading branch information
BabyBoySnow committed Jan 19, 2024
1 parent 0a0e171 commit 8d8148f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,24 +1635,6 @@ async def cmd_resetplaylist(self, player, channel):
self.str.get("cmd-resetplaylist-response", "\N{OK HAND SIGN}"),
delete_after=15,
)

async def cmd_ping(self, message, channel):
"""
Usage:
{command_prefix}ping
Shows the latency between the bot and discord.
"""
e = self._gen_embed()
e.title = "Ping"
e.add_field(name=f"Latency between {self.user.name} and Discord", value=round(self.latency * 1000, 2), inline=False)
if 0 <= round(self.latency * 1000, 2) < 30:
e.colour = discord.Colour.green()
elif 40 <= round(self.latency * 1000, 2) < 40:
e.colour = discord.Colour.yellow()
elif round(self.latency * 1000, 2) > 60:
e.colour = discord.Colour.red()
return Response(e, delete_after=45)

async def cmd_help(self, message, channel, command=None):
"""
Expand Down

0 comments on commit 8d8148f

Please sign in to comment.