Release/1.0.0 beta.3 #10

Merged
AstroGD merged 20 commits from release/1.0.0-beta.3 into main 2022-11-25 19:49:57 +01:00
Showing only changes of commit 7a5d7f46b6 - Show all commits

View File

@ -124,6 +124,21 @@ export default async function execute(args: string[]) {
break;
}
case "delete": {
if (!args[1]) return printHelp();
await database.getRepository(GuildSetting).delete({
id: args[1]
});
await database.getRepository(Badword).delete({
guildID: args[1]
});
console.log(`Deleted all data for guild ${args[1]}`);
break;
}
default: {
printHelp();
break;
@ -137,7 +152,8 @@ function printHelp() {
guild info [GUILDID]
guild setPremium [GUILDID] [YYYY-MM-DD or NULL]
guild words [get|add|remove|clear]`);
guild words [get|add|remove|clear]
guild delete [GUILDID]`);
}
function printWordHelp() {