Browse Source

Make private ping only displayed in birdflop discord

master
Purpur 4 years ago
committed by GitHub
parent
commit
4da058ae32
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      bot.py

1
bot.py

@ -133,6 +133,7 @@ async def on_raw_reaction_add(payload):
@bot.command() @bot.command()
async def ping(ctx): async def ping(ctx):
if running_on_panel: if running_on_panel:
if guild_id == ctx.guild.id:
await ctx.send(f'Private bot ping is {round(bot.latency * 1000)}ms') await ctx.send(f'Private bot ping is {round(bot.latency * 1000)}ms')
if not running_on_panel: if not running_on_panel:
await ctx.send(f'Public bot ping is {round(bot.latency * 1000)}ms') await ctx.send(f'Public bot ping is {round(bot.latency * 1000)}ms')

Loading…
Cancel
Save