Browse Source
Make private ping only displayed in birdflop discord
master
Purpur
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
bot.py
|
@ -133,7 +133,8 @@ 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: |
|
|
await ctx.send(f'Private bot ping is {round(bot.latency * 1000)}ms') |
|
|
|
|
|
|
|
|
if guild_id == ctx.guild.id: |
|
|
|
|
|
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') |
|
|
|
|
|
|
|
|