diff --git a/To-Do.md b/To-Do.md index 2ecfc23..9f3baf7 100644 --- a/To-Do.md +++ b/To-Do.md @@ -1,29 +1,3 @@ -# Changelog: - -## Nuts: -- Nut Stats refactored -- Nut Animation fixed - -## Quotes: -- Fixed Quote Menu -- Fixed Leaderboard - -## Honors: -- Honor Menu fixed -- Honors modernized - -## Birthday: -- Fixed Boot Event -- Fixed Role Management - -## Config: -- Role Selection -- Channel Selection - -## General: -- Fixed External Sources to Local ones -- Fixed Thumbnails to Guild Icon - ### ToDo?: - quotes filter by channel - event creation + reminder 1h before \ No newline at end of file diff --git a/commands/legacy/dev/ping.js b/commands/legacy/dev/ping.js new file mode 100644 index 0000000..30bd96f --- /dev/null +++ b/commands/legacy/dev/ping.js @@ -0,0 +1,9 @@ +const ping = require("../../../src/ping") + +module.exports = { + name: 'ping', + description: 'dev tool', + aliases: ['p'], + async execute(message, args) { + return ping(message, args, 'legacy') + }} \ No newline at end of file diff --git a/commands/slash/admin/ping.js b/commands/slash/admin/ping.js new file mode 100644 index 0000000..d5613dd --- /dev/null +++ b/commands/slash/admin/ping.js @@ -0,0 +1,11 @@ +const { SlashCommandBuilder } = require("discord.js"); +const ping = require("../../../src/ping"); + +module.exports = { + data: new SlashCommandBuilder() + .setName('ping') + .setDescription('dev tool'), + async execute(interaction) { + return ping(interaction, null, 'slash') + } +} \ No newline at end of file diff --git a/src/ping.js b/src/ping.js new file mode 100644 index 0000000..0ab1751 --- /dev/null +++ b/src/ping.js @@ -0,0 +1,9 @@ +module.exports = + function ping(interface, args, type){ + if (type = 'legacy'){ + // type = legacy + interface.reply('pang!') + } else { + interface.reply('pong!') + } + }