|
@@ -220,7 +220,7 @@ async def info_cmd(message, words):
|
|
|
async def ping_cmd(message, channel):
|
|
async def ping_cmd(message, channel):
|
|
|
''' Responds to ping command '''
|
|
''' Responds to ping command '''
|
|
|
messageTimestamp = message.created_at
|
|
messageTimestamp = message.created_at
|
|
|
- currentTimestamp = datetime.datetime.utcnow()
|
|
|
|
|
|
|
+ currentTimestamp = datetime.datetime.now(datetime.timezone.utc)
|
|
|
delta = round((currentTimestamp - messageTimestamp).total_seconds() * 1000)
|
|
delta = round((currentTimestamp - messageTimestamp).total_seconds() * 1000)
|
|
|
|
|
|
|
|
await message.reply("pong ({}ms)".format(delta))
|
|
await message.reply("pong ({}ms)".format(delta))
|