1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-26 11:45:37 -05:00

Compare commits

..

3 Commits

Author SHA1 Message Date
toast-ts
592ed96802 Update deps 2024-11-14 18:33:21 +11:00
toast-ts
29139cf4c5 Update presence 2024-11-14 18:13:35 +11:00
toast-ts
8730c36675 Don't uselessly waste CPU cycles on disabled MPModule 2024-11-03 21:06:24 +11:00
4 changed files with 89 additions and 82 deletions

View File

@ -27,7 +27,7 @@
"engineStrict": true,
"packageManager": "yarn@4.5.1+sha512.341db9396b6e289fecc30cd7ab3af65060e05ebff4b3b47547b278b9e67b08f485ecd8c79006b405446262142c7a38154445ef7f17c1d5d1de7d90bf9ce7054d",
"dependencies": {
"@napi-rs/canvas": "0.1.59",
"@napi-rs/canvas": "0.1.61",
"@octokit/rest": "21.0.2",
"@sequelize/core": "7.0.0-alpha.43",
"@sequelize/postgres": "7.0.0-alpha.43",
@ -36,17 +36,17 @@
"dayjs": "1.11.13",
"discord.js": "14.16.3",
"fast-xml-parser": "4.5.0",
"mathjs": "13.2.0",
"mathjs": "13.2.2",
"ms": "2.1.3",
"node-cron": "3.0.3",
"redis": "4.7.0",
"simple-git": "3.27.0",
"systeminformation": "5.23.5",
"undici": "6.20.1"
"undici": "6.21.0"
},
"devDependencies": {
"@types/ms": "0.7.34",
"@types/node": "22.8.4",
"@types/node": "22.9.0",
"@types/node-cron": "3.0.11",
"typescript": "5.5.4"
}

View File

@ -26,8 +26,8 @@
"botPresence": {
"activities": [
{
"name": "Ready for FS25??",
"url": "https://youtube.com/watch?v=YQdGJMwjePk",
"name": "Today is November!",
"url": "https://www.youtube.com/watch?v=O0zzl_VaM9o",
"type": 1
}
],
@ -89,4 +89,4 @@
"server_log": "1040002995783471265"
}
}
}
}

View File

@ -6,7 +6,7 @@ import cron from 'node-cron';
import Logger from './helpers/Logger.js';
//import YTModule from './modules/YTModule.js';
import CacheServer from './components/CacheServer.js';
import MPModule, {refreshTimerSecs} from './modules/MPModule.js';
// import MPModule, {refreshTimerSecs} from './modules/MPModule.js';
import UsernameHelper from './helpers/UsernameHelper.js';
import {Punishment, RawGatewayPacket, RawMessageDelete, RawMessageUpdate} from 'src/interfaces';
import {readFileSync} from 'node:fs';
@ -25,7 +25,7 @@ client.on('error', (error: Error)=>_(error, 'clientError'));
if ((typeof process.argv[4] === 'string' && process.argv[4] === 'true') ?? null) client.on('debug', console.log);
// Interval timers for modules
setInterval(async()=>await MPModule(client), refreshTimerSecs);
// setInterval(async()=>await MPModule(client), refreshTimerSecs);
//cron.schedule('0-5 * * * *', ()=>YTModule(client)); // Every minute from 0 through 5
cron.schedule('5-12 * * * *', async()=>{// Every minute from 5 through 12
const forum = client.guilds.cache.get(client.config.dcServer.id).channels.cache.get(client.config.dcServer.channels.help_forum) as Discord.ForumChannel;

153
yarn.lock
View File

@ -5,7 +5,7 @@ __metadata:
version: 8
cacheKey: 10
"@babel/runtime@npm:^7.25.6":
"@babel/runtime@npm:^7.25.7":
version: 7.26.0
resolution: "@babel/runtime@npm:7.26.0"
dependencies:
@ -109,82 +109,82 @@ __metadata:
languageName: node
linkType: hard
"@napi-rs/canvas-android-arm64@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-android-arm64@npm:0.1.59"
"@napi-rs/canvas-android-arm64@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-android-arm64@npm:0.1.61"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/canvas-darwin-arm64@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-darwin-arm64@npm:0.1.59"
"@napi-rs/canvas-darwin-arm64@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-darwin-arm64@npm:0.1.61"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/canvas-darwin-x64@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-darwin-x64@npm:0.1.59"
"@napi-rs/canvas-darwin-x64@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-darwin-x64@npm:0.1.61"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.59"
"@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.61"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@napi-rs/canvas-linux-arm64-gnu@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-linux-arm64-gnu@npm:0.1.59"
"@napi-rs/canvas-linux-arm64-gnu@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-linux-arm64-gnu@npm:0.1.61"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@napi-rs/canvas-linux-arm64-musl@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-linux-arm64-musl@npm:0.1.59"
"@napi-rs/canvas-linux-arm64-musl@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-linux-arm64-musl@npm:0.1.61"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@napi-rs/canvas-linux-x64-gnu@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-linux-x64-gnu@npm:0.1.59"
"@napi-rs/canvas-linux-x64-gnu@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-linux-x64-gnu@npm:0.1.61"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@napi-rs/canvas-linux-x64-musl@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-linux-x64-musl@npm:0.1.59"
"@napi-rs/canvas-linux-x64-musl@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-linux-x64-musl@npm:0.1.61"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@napi-rs/canvas-win32-x64-msvc@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas-win32-x64-msvc@npm:0.1.59"
"@napi-rs/canvas-win32-x64-msvc@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas-win32-x64-msvc@npm:0.1.61"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@napi-rs/canvas@npm:0.1.59":
version: 0.1.59
resolution: "@napi-rs/canvas@npm:0.1.59"
"@napi-rs/canvas@npm:0.1.61":
version: 0.1.61
resolution: "@napi-rs/canvas@npm:0.1.61"
dependencies:
"@napi-rs/canvas-android-arm64": "npm:0.1.59"
"@napi-rs/canvas-darwin-arm64": "npm:0.1.59"
"@napi-rs/canvas-darwin-x64": "npm:0.1.59"
"@napi-rs/canvas-linux-arm-gnueabihf": "npm:0.1.59"
"@napi-rs/canvas-linux-arm64-gnu": "npm:0.1.59"
"@napi-rs/canvas-linux-arm64-musl": "npm:0.1.59"
"@napi-rs/canvas-linux-x64-gnu": "npm:0.1.59"
"@napi-rs/canvas-linux-x64-musl": "npm:0.1.59"
"@napi-rs/canvas-win32-x64-msvc": "npm:0.1.59"
"@napi-rs/canvas-android-arm64": "npm:0.1.61"
"@napi-rs/canvas-darwin-arm64": "npm:0.1.61"
"@napi-rs/canvas-darwin-x64": "npm:0.1.61"
"@napi-rs/canvas-linux-arm-gnueabihf": "npm:0.1.61"
"@napi-rs/canvas-linux-arm64-gnu": "npm:0.1.61"
"@napi-rs/canvas-linux-arm64-musl": "npm:0.1.61"
"@napi-rs/canvas-linux-x64-gnu": "npm:0.1.61"
"@napi-rs/canvas-linux-x64-musl": "npm:0.1.61"
"@napi-rs/canvas-win32-x64-msvc": "npm:0.1.61"
dependenciesMeta:
"@napi-rs/canvas-android-arm64":
optional: true
@ -204,7 +204,7 @@ __metadata:
optional: true
"@napi-rs/canvas-win32-x64-msvc":
optional: true
checksum: 10/d8e15679d6673f8fc5e661843284d59fa9d9f51289efde6a821e1ecd4053dfa425bcf327ff796ab82bf7f59d898f1bb5009bb25433ec2b275005fc38c3dd37f0
checksum: 10/74a78a3d4c6f45ff9ea7bd3db380579dbf021c5b93687c867196a2d3fa25017bf4237bc0cefc7c0267401e36a2ce2acf39522bed2496310c7971b6c1432611bd
languageName: node
linkType: hard
@ -415,9 +415,9 @@ __metadata:
linkType: hard
"@sapphire/async-queue@npm:^1.5.2, @sapphire/async-queue@npm:^1.5.3":
version: 1.5.3
resolution: "@sapphire/async-queue@npm:1.5.3"
checksum: 10/6a9fdeeaa3e4591c057cb67b5aae86d9c94326dcb0ea9e8e3b8eba8cbcfee2a0f672d837a51e3da2c838f9861a6117fced2b0ac8e1b719bc5caf1bbbee781fb3
version: 1.5.5
resolution: "@sapphire/async-queue@npm:1.5.5"
checksum: 10/26e6136de6dde4053e69afe7103fc8d71e9b780100a2b00de7d74eb009263cb6b1d06cf92b75a699c4c05804b7c7bc72190814c3709a60cde291ce29be0e0c36
languageName: node
linkType: hard
@ -431,13 +431,20 @@ __metadata:
languageName: node
linkType: hard
"@sapphire/snowflake@npm:3.5.3, @sapphire/snowflake@npm:^3.5.3":
"@sapphire/snowflake@npm:3.5.3":
version: 3.5.3
resolution: "@sapphire/snowflake@npm:3.5.3"
checksum: 10/f306626f76a6e9bdc7de9130c1baf7ddcd8681d7d03b2ab6f2404081f71c94085d4001e8a62ae2c2372b3b54d2d52ec21d43695f2c73fb101caabc2d3bf524aa
languageName: node
linkType: hard
"@sapphire/snowflake@npm:^3.5.3":
version: 3.5.5
resolution: "@sapphire/snowflake@npm:3.5.5"
checksum: 10/ccffcf71ebcad6762fd663ec7b6e176c7c3cc3ea03cae5b2eed8cc2a9a3645112b68f8f6da141341e2868dfd8ef833bfe93cdad91ab29b9d68e37ee87e5b1c4c
languageName: node
linkType: hard
"@sequelize/core@npm:7.0.0-alpha.43":
version: 7.0.0-alpha.43
resolution: "@sequelize/core@npm:7.0.0-alpha.43"
@ -531,12 +538,12 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:*, @types/node@npm:22.8.4":
version: 22.8.4
resolution: "@types/node@npm:22.8.4"
"@types/node@npm:*, @types/node@npm:22.9.0":
version: 22.9.0
resolution: "@types/node@npm:22.9.0"
dependencies:
undici-types: "npm:~6.19.8"
checksum: 10/ee6b6b66c290a74bb37487f5ec533b7333c25e1b2f45016af4cd870408c4366f6fca75de5b8bb7a6e5836ab0536d2ef1910a89a2f797ae33a80344d0e81de03e
checksum: 10/a7df3426891868b0f5fb03e46aeddd8446178233521c624a44531c92a040cf08a82d8235f7e1e02af731fd16984665d4d71f3418caf9c2788313b10f040d615d
languageName: node
linkType: hard
@ -559,11 +566,11 @@ __metadata:
linkType: hard
"@types/ws@npm:^8.5.10":
version: 8.5.12
resolution: "@types/ws@npm:8.5.12"
version: 8.5.13
resolution: "@types/ws@npm:8.5.13"
dependencies:
"@types/node": "npm:*"
checksum: 10/d8a3ddfb5ff8fea992a043113579d61ac1ea21e8464415af9e2b01b205ed19d817821ad64ca1b3a90062d1df1c23b0f586d8351d25ca6728844df99a74e8f76d
checksum: 10/21369beafa75c91ae3b00d3a2671c7408fceae1d492ca2abd5ac7c8c8bf4596d513c1599ebbddeae82c27c4a2d248976d0d714c4b3d34362b2ae35b964e2e637
languageName: node
linkType: hard
@ -618,10 +625,10 @@ __metadata:
languageName: node
linkType: hard
"complex.js@npm:^2.1.1":
version: 2.4.0
resolution: "complex.js@npm:2.4.0"
checksum: 10/7377be0136085b5818488894c7e391974f64edb4ddb983216fecb542be24b3b75f232482bc930917722b0b4fef0191e57a224ce7d6a48a5398700142cd55b120
"complex.js@npm:^2.2.5":
version: 2.4.2
resolution: "complex.js@npm:2.4.2"
checksum: 10/089257e0f09b3c9f52b4f7e009abb762a924d820fe01002da61bf9a3cee28c364a77de4d26ba8623c4fac017feb6856797da0713f8c165f795914be0c9e0b127
languageName: node
linkType: hard
@ -629,26 +636,26 @@ __metadata:
version: 0.0.0-use.local
resolution: "daggerbot-ts@workspace:."
dependencies:
"@napi-rs/canvas": "npm:0.1.59"
"@napi-rs/canvas": "npm:0.1.61"
"@octokit/rest": "npm:21.0.2"
"@sequelize/core": "npm:7.0.0-alpha.43"
"@sequelize/postgres": "npm:7.0.0-alpha.43"
"@toast/tokenservice-client": "npm:1.3.1"
"@types/ms": "npm:0.7.34"
"@types/node": "npm:22.8.4"
"@types/node": "npm:22.9.0"
"@types/node-cron": "npm:3.0.11"
ansi-colors: "npm:4.1.3"
dayjs: "npm:1.11.13"
discord.js: "npm:14.16.3"
fast-xml-parser: "npm:4.5.0"
mathjs: "npm:13.2.0"
mathjs: "npm:13.2.2"
ms: "npm:2.1.3"
node-cron: "npm:3.0.3"
redis: "npm:4.7.0"
simple-git: "npm:3.27.0"
systeminformation: "npm:5.23.5"
typescript: "npm:5.5.4"
undici: "npm:6.20.1"
undici: "npm:6.21.0"
languageName: unknown
linkType: soft
@ -863,12 +870,12 @@ __metadata:
languageName: node
linkType: hard
"mathjs@npm:13.2.0":
version: 13.2.0
resolution: "mathjs@npm:13.2.0"
"mathjs@npm:13.2.2":
version: 13.2.2
resolution: "mathjs@npm:13.2.2"
dependencies:
"@babel/runtime": "npm:^7.25.6"
complex.js: "npm:^2.1.1"
"@babel/runtime": "npm:^7.25.7"
complex.js: "npm:^2.2.5"
decimal.js: "npm:^10.4.3"
escape-latex: "npm:^1.2.0"
fraction.js: "npm:^4.3.7"
@ -878,7 +885,7 @@ __metadata:
typed-function: "npm:^4.2.1"
bin:
mathjs: bin/cli.js
checksum: 10/d0604422c8e7a705eb04a6e7db71fd6013da891ca8ed439b653e83efd7934b2d2c71345e5f24560e40c67bccb996381a1058355c6fec061aa61093c506484a69
checksum: 10/0b0eac47221d316deef9747e44bda31412b9916e47caea357be60a55f9ed328e52a9eb840449a4f15c0867cd6939f6904075e01391ed992e3c879efbfd0de2e7
languageName: node
linkType: hard
@ -1248,9 +1255,9 @@ __metadata:
linkType: hard
"tslib@npm:^2.6.2, tslib@npm:^2.6.3":
version: 2.8.0
resolution: "tslib@npm:2.8.0"
checksum: 10/1bc7c43937477059b4d26f2dbde7e49ef0fb4f38f3014e0603eaea76d6a885742c8b1762af45949145e5e7408a736d20ded949da99dabc8ccba1fc5531d2d927
version: 2.8.1
resolution: "tslib@npm:2.8.1"
checksum: 10/3e2e043d5c2316461cb54e5c7fe02c30ef6dccb3384717ca22ae5c6b5bc95232a6241df19c622d9c73b809bea33b187f6dbc73030963e29950c2141bc32a79f7
languageName: node
linkType: hard
@ -1309,10 +1316,10 @@ __metadata:
languageName: node
linkType: hard
"undici@npm:6.20.1, undici@npm:^6.20.0":
version: 6.20.1
resolution: "undici@npm:6.20.1"
checksum: 10/68604b53754a95ec89d52efc08fe3e70e333997300c9a5b69f2b6496f1f0f568b2e35adec6442985a7b1d2f7a5648ef5062d1736e4d68082d473cb82177674bc
"undici@npm:6.21.0, undici@npm:^6.20.0":
version: 6.21.0
resolution: "undici@npm:6.21.0"
checksum: 10/c8ff80dcadfcf613e7fe697c37519fca070fcf1cfccc69ffb6a7080a22e225eb79d232e9f70e32b099b3e67ac4216e8fd615e188cfb792e09df9233471ec17e0
languageName: node
linkType: hard