From 601c2639ba8b653743b8af5686e3b5969b462107 Mon Sep 17 00:00:00 2001 From: Dominik Koch Date: Sat, 20 Jul 2024 16:04:29 +0200 Subject: [PATCH] Remake the question queue system (#577) * start queue remake * fix: minor fixes and additions * fix; make sure questions are cleared and added * fix: saving point for files * this sucks * add: non-repetitive questions * fix: ts ignore welcomer * fix: add enabled flag * fix: remove nodemon * fix: no custom questions issue --------- Co-authored-by: ForGetFulSkyBro --- README.md | 13 +- package.json | 1 - src/buttons/gamesActivities/dare.ts | 10 +- src/buttons/gamesActivities/higher.ts | 4 +- src/buttons/gamesActivities/lower.ts | 4 +- src/buttons/gamesActivities/neverhaveiever.ts | 10 +- src/buttons/gamesActivities/random.ts | 9 +- src/buttons/gamesActivities/truth.ts | 9 +- src/buttons/gamesActivities/wouldyourather.ts | 9 +- src/buttons/gamesActivities/wwyd.ts | 9 +- src/commands/game/dare.ts | 6 +- src/commands/game/neverhaveiever.ts | 6 +- src/commands/game/random.ts | 6 +- src/commands/game/truth.ts | 6 +- src/commands/game/whatwouldyoudo.ts | 6 +- src/commands/game/wouldyourather.ts | 8 +- src/events/guildMemberAdd.ts | 95 +++--- src/util/Functions/jsonImport.ts | 272 +++++++++++++----- src/util/Functions/queueHandler.ts | 130 --------- src/util/Models/usedModel.ts | 25 ++ 20 files changed, 341 insertions(+), 297 deletions(-) delete mode 100644 src/util/Functions/queueHandler.ts diff --git a/README.md b/README.md index ea2a86e7..6a3ea353 100644 --- a/README.md +++ b/README.md @@ -37,17 +37,18 @@ Follow the Angular commit message format. See [here](https://github.com/angular/ You can run the below scripts with `pnpm