Merge pull request #6 from Raatty/development

ping with times
This commit is contained in:
Raatty
2018-05-22 21:20:57 +12:00
committed by GitHub
+6 -2
View File
@@ -14,7 +14,11 @@ class CogName:
@commands.command()
async def ping(self, ctx):
"""Say pong"""
await ctx.send('Pong')
now = ctx.message.created_at
msg = await ctx.send('Pong')
sub = msg.created_at - now
await ctx.edit(content=f'Pong, {sub.total_seconds() * 1000})
def setup(bot):
bot.add_cog(CogName(bot))
bot.add_cog(CogName(bot))