This commit is contained in:
21
commands/contests/reset.ts
Normal file
21
commands/contests/reset.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/* 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();
|
||||
*/
|
||||
Reference in New Issue
Block a user