Updating cog description

Moving ping command
pull/8/head
sgoudham 4 years ago
parent 260d09b3d8
commit 848ca2ba51

@ -52,11 +52,16 @@ def DetectPermissions(message, fset):
class Info(commands.Cog): class Info(commands.Cog):
"""User/Server/Bot Information!""" """(User/Server/Bot etc) Information!"""
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
@command(name="ping", aliases=["Ping"])
async def _ping(self, ctx):
"""Sends the latency of the bot (ms)"""
await ctx.send(f'Pong! `{round(self.bot.latency * 1000)}ms`')
@command(name="userinfo", aliases=["ui"]) @command(name="userinfo", aliases=["ui"])
@cooldown(1, 5, BucketType.user) @cooldown(1, 5, BucketType.user)
async def user_info(self, ctx, target: Optional[Member]): async def user_info(self, ctx, target: Optional[Member]):

Loading…
Cancel
Save