Add ping command (internal only)

This commit is contained in:
Zeva Rose 2022-05-01 09:09:50 -06:00
parent 611051e6a1
commit c260b93530

View file

@ -77,6 +77,10 @@ class BotutilCog(Scale):
embed.set_image(url=self.bot.user.avatar.url)
await ctx.send(embed=embed)
@msg_command(name="ping")
async def _ping(self, ctx: MessageContext) -> None:
await ctx.reply(f"{self.bot.average_latency}ms")
@msg_command(name="update")
async def _update(self, ctx: MessageContext) -> None:
repo = git.Repo(".")