attempted to streamline by breaking functions into separate source
This commit is contained in:
@@ -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
|
||||||
@@ -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')
|
||||||
|
}}
|
||||||
@@ -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')
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
module.exports =
|
||||||
|
function ping(interface, args, type){
|
||||||
|
if (type = 'legacy'){
|
||||||
|
// type = legacy
|
||||||
|
interface.reply('pang!')
|
||||||
|
} else {
|
||||||
|
interface.reply('pong!')
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user