22 lines
634 B
TypeScript
22 lines
634 B
TypeScript
/* DEPRECATED
|
|
|
|
import {CommandInteraction} from 'discord.js';
|
|
import {Command} from '../../classes/command';
|
|
import {logger} from '../../logger'
|
|
import {clearContests, clearProblems, clearSessions} from '../../functions/database';
|
|
|
|
class Reset extends Command{
|
|
get name(){return "reset";}
|
|
get description(){return "Reset database.";}
|
|
async execute(interaction: CommandInteraction): Promise<void>{
|
|
await clearContests();
|
|
await clearProblems();
|
|
await clearSessions();
|
|
await interaction.reply({content: `Reset complete.`});
|
|
logger.log(`Command: reset database.`);
|
|
}
|
|
};
|
|
|
|
export const command = new Reset();
|
|
*/
|