Add ping command (internal only)
This commit is contained in:
parent
611051e6a1
commit
c260b93530
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ class BotutilCog(Scale):
|
||||||
embed.set_image(url=self.bot.user.avatar.url)
|
embed.set_image(url=self.bot.user.avatar.url)
|
||||||
await ctx.send(embed=embed)
|
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")
|
@msg_command(name="update")
|
||||||
async def _update(self, ctx: MessageContext) -> None:
|
async def _update(self, ctx: MessageContext) -> None:
|
||||||
repo = git.Repo(".")
|
repo = git.Repo(".")
|
||||||
|
|
Loading…
Add table
Reference in a new issue