summary refs log tree commit diff
path: root/commands/ping.js
diff options
context:
space:
mode:
authorAmygdala Peanut-Almond <amygdala@almond.desloratadyna.net>2026-04-22 22:49:01 +0200
committerAmygdala Peanut-Almond <amygdala@almond.desloratadyna.net>2026-04-22 22:49:01 +0200
commit3572b97661a3f7c6c29e958b63c20d9f2ef936ac (patch)
treeb3ee056039cf792edd467e5172feee25a07dd56c /commands/ping.js
initialise repository
Signed-off-by: Amygdala Peanut-Almond <amygdala@almond.desloratadyna.net>
Diffstat (limited to 'commands/ping.js')
-rw-r--r--commands/ping.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/ping.js b/commands/ping.js
new file mode 100644
index 0000000..e30781d
--- /dev/null
+++ b/commands/ping.js
@@ -0,0 +1,12 @@
+module.exports = {
+	name: 'ping',
+	description: "🏓 pong!",
+	async execute(message, args) {
+		const a = Date.now();
+		const mesgA =  await message.reply(`🏓 pong!\ngateway: ${client.ws.ping}ms`);
+		const b = Date.now();
+
+		await mesgA.edit(`${mesgA.content}\napi: ${b-a}ms`);
+	}
+}
+