Files
mafuyu-kirisu/commands/tests/test.ts
konchin 2d7361e937
Some checks failed
release-tag / release-image (push) Failing after 1m14s
initial commit
2024-10-11 19:49:58 +08:00

27 lines
733 B
TypeScript

/* DEPRECATED
import {CommandInteraction} from 'discord.js';
import {Command} from '../../classes/command';
import {logger} from '../../logger';
import {getAllContest, getAllProblem, getAllSession} from '../../functions/database';
class Test extends Command{
get name(){return "test";}
get description(){return "Testing some features.";}
async execute(interaction: CommandInteraction): Promise<void>{
try{
console.log(await getAllContest());
console.log(await getAllProblem());
console.log(await getAllSession());
interaction.reply({
content: `test ok`
});
}catch(error: unknown){
logger.error(`error get all contests`);
}
}
};
export const command = new Test();
*/