ソースを参照

Now replying insted of sending a msg to cmd ping

Lucas Villeneuve 5 年 前
コミット
497b422d18
1 ファイル変更2 行追加2 行削除
  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):