1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Changed int() to round() to be slightly more accurate

This commit is contained in:
Myned 2017-10-13 21:52:03 -04:00
parent 5e65dcbb8f
commit 48b17e3ab2

View file

@ -48,7 +48,7 @@ class Utils:
async def ping(self, ctx):
global command_dict
await ctx.send(ctx.message.author.mention + ' 🏓 `' + str(int(self.bot.latency * 1000)) + 'ms`', delete_after=5)
await ctx.send(ctx.message.author.mention + ' 🏓 `' + str(round(self.bot.latency * 1000)) + 'ms`', delete_after=5)
command_dict.setdefault(str(ctx.message.author.id), {}).update({'command': ctx.command})
@commands.command(aliases=['pre'], brief='List bot prefixes', description='Shows all used prefixes')