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
-26
View File
@@ -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?: ### ToDo?:
- quotes filter by channel - quotes filter by channel
- event creation + reminder 1h before - event creation + reminder 1h before
+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')
}
}
+9
View File
@@ -0,0 +1,9 @@
module.exports =
function ping(interface, args, type){
if (type = 'legacy'){
// type = legacy
interface.reply('pang!')
} else {
interface.reply('pong!')
}
}