Răsfoiți Sursa

Now replying insted of sending a msg to cmd ping

Lucas Villeneuve 5 ani în urmă
părinte
comite
497b422d18
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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):