Refactor to more consistent structure (e.g. "plugins")

This commit is contained in:
2025-07-06 15:23:03 -04:00
parent a6255de889
commit 6fb38d36f3
22 changed files with 567 additions and 600 deletions

22
plugins/ping.ts Normal file
View File

@@ -0,0 +1,22 @@
import {SlashCommandBuilder} from 'discord.js';
import {BasePlugin, type Settings} from '../plugin';
export class PingPlugin extends BasePlugin {
constructor(settings: Settings) {
super(settings);
this.commands = [
{
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Send a ping to the bot'),
execute: async interaction => {
await interaction.reply(
`Pong! This command was run by ${interaction.user.username}, who joined on ${interaction.member?.joinedAt}.`,
);
},
},
];
}
}