attempted to streamline by breaking functions into separate source

This commit is contained in:
2026-04-07 08:45:26 +02:00
parent 83c204670d
commit 2c596fe23f
4 changed files with 29 additions and 26 deletions
+9
View File
@@ -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')
}}
+11
View File
@@ -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')
}
}