Basic reminder system

This commit is contained in:
2025-07-01 09:55:23 -04:00
parent e5e38e6100
commit 68bfcaee0b
5 changed files with 202 additions and 104 deletions

View File

@@ -1,12 +1,15 @@
// import type { ChatInputCommandInteraction } from "discord.js";
import { SlashCommandBuilder, } from "discord.js";
import { type Client, SlashCommandBuilder } from "discord.js";
import type { Sequelize } from "sequelize";
export const data = new SlashCommandBuilder()
.setName("ping")
.setDescription("Send a ping to the bot");
export async function execute(interaction) {
await interaction.reply(
`Pong! This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`
);
export default function (settings: { client: Client; db: Sequelize }) {
return {
execute: async (interaction) => {
await interaction.reply(
`Pong! This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`,
);
},
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Send a ping to the bot"),
};
}