Explorar el Código

Now replying insted of sending a msg to cmd ping

Lucas Villeneuve hace 5 años
padre
commit
497b422d18
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      myanimebot/commands.py

+ 2 - 2
myanimebot/commands.py

@@ -188,8 +188,8 @@ async def ping_cmd(message, channel):
     messageTimestamp = message.created_at
     currentTimestamp = datetime.datetime.utcnow()
     delta = round((currentTimestamp - messageTimestamp).total_seconds() * 1000)
-    
-    await channel.send("pong (" + str(delta) + "ms)")
+
+    await message.reply("pong ({}ms)".format(delta))
 
 
 async def about_cmd(channel):