From 48b17e3ab2bb0ffca04021be0d4e4f4151fd1e3c Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 13 Oct 2017 21:52:03 -0400 Subject: [PATCH] Changed int() to round() to be slightly more accurate --- src/main/cogs/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cogs/tools.py b/src/main/cogs/tools.py index ace1ba5..2f7f7a2 100644 --- a/src/main/cogs/tools.py +++ b/src/main/cogs/tools.py @@ -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')