mirror of
https://github.com/miaowware/qrm2.git
synced 2025-05-30 05:02:30 -04:00
Merge pull request #73 from classabbyamp/ping-surprise
ternary statements, ofc
This commit is contained in:
commit
a02e68b91f
@ -39,9 +39,7 @@ class BaseCog(commands.Cog):
|
|||||||
@commands.command(name="ping")
|
@commands.command(name="ping")
|
||||||
async def _ping(self, ctx: commands.Context):
|
async def _ping(self, ctx: commands.Context):
|
||||||
"""Show the current latency to the discord endpoint."""
|
"""Show the current latency to the discord endpoint."""
|
||||||
content = ''
|
content = ctx.message.author.mention if random.random() < 0.05 else ''
|
||||||
if random.random() < 0.05:
|
|
||||||
content = f'<@{ctx.message.author.id}>'
|
|
||||||
embed = discord.Embed(title="**Pong!**",
|
embed = discord.Embed(title="**Pong!**",
|
||||||
description=f'Current ping is {self.bot.latency*1000:.1f} ms',
|
description=f'Current ping is {self.bot.latency*1000:.1f} ms',
|
||||||
colour=self.gs.colours.neutral,
|
colour=self.gs.colours.neutral,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user