diff --git a/Dockerfile b/Dockerfile index 6c093c0..f5b8702 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22.1.0-alpine3.19 +FROM node:22.2.0-alpine3.20 ENV YARN_VERSION 4.2.2 ENV TZ Australia/Sydney ENV NODE_COMPILE_CACHE /Daggerbot/build_cache diff --git a/README.md b/README.md index 3cf7f95..974e240 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,11 @@ This is a revision history of how far we come in development cycle; |----------|----------|---------|----------| | V1 | JavaScript | Discord.JS v13 | Message commands | | V2-V3 | TypeScript | Discord.JS v14 | Slash/message commands | +| V4 (Private) | Rust | Serenity v0.12.1 | Slash commands | ## CLI arguments (`process.argv[..]`) `yarn dev` - Starts the development bot with predefined args. -The args in question is; +The args in question is; | Argument | Usage | |----------|-------| | `src/DB-Beta.config.json` | Location of config file - [2] | diff --git a/src/models/userLevels.ts b/src/models/userLevels.ts index 3d3f14d..5572721 100644 --- a/src/models/userLevels.ts +++ b/src/models/userLevels.ts @@ -112,7 +112,7 @@ export class UserLevelsSvc { const performCountBeforeReset = await this.model.count(); const topMembers = await this.model.findAll({order: [['messages', 'DESC']], limit: 5}); Logger.console('log', 'Cron:resetAllData', `Counted ${performCountBeforeReset.toLocaleString()} members before reset`); - + try { await this.client.dailyMsgs.nukeDays(); await this.model.truncate();