aboutsummaryrefslogtreecommitdiff
path: root/commands/ping.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-12-21 17:54:16 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-12-21 17:54:16 -0500
commit63682deb929a1a201f4c344f0eaea5ae449b05ac (patch)
tree3696db53fd13666c77afdc265ee8191cf1c2568d /commands/ping.js
downloadshrimpbot-js-63682deb929a1a201f4c344f0eaea5ae449b05ac.tar.gz
shrimpbot-js-63682deb929a1a201f4c344f0eaea5ae449b05ac.tar.bz2
shrimpbot-js-63682deb929a1a201f4c344f0eaea5ae449b05ac.zip
Inital commit (aka start of this garbage dump
Diffstat (limited to 'commands/ping.js')
-rw-r--r--commands/ping.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands/ping.js b/commands/ping.js
new file mode 100644
index 0000000..a9dc141
--- /dev/null
+++ b/commands/ping.js
@@ -0,0 +1,10 @@
+import { SlashCommandBuilder } from 'discord.js';
+
+export default {
+ data: new SlashCommandBuilder()
+ .setName('ping')
+ .setDescription('Pong!'),
+ async execute(interaction, bot) {
+ return await interaction.reply(`Pong! ${Math.round(bot.ws.ping)}ms`);
+ }
+};