1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Compare commits

..

No commits in common. "5978d3372638c03856941057255c5e0145f23de0" and "b5f0e91b631e0acb60905610a8bf0fd7c30a9d45" have entirely different histories.

3 changed files with 65 additions and 72 deletions

View File

@ -34,19 +34,19 @@
"@toast/tokenservice-client": "1.2.8", "@toast/tokenservice-client": "1.2.8",
"ansi-colors": "4.1.3", "ansi-colors": "4.1.3",
"dayjs": "1.11.11", "dayjs": "1.11.11",
"discord.js": "14.15.3", "discord.js": "14.15.2",
"fast-xml-parser": "4.4.0", "fast-xml-parser": "4.4.0",
"mathjs": "13.0.0", "mathjs": "12.4.2",
"ms": "2.1.3", "ms": "2.1.3",
"node-cron": "3.0.3", "node-cron": "3.0.3",
"redis": "4.6.14", "redis": "4.6.14",
"simple-git": "3.24.0", "simple-git": "3.24.0",
"systeminformation": "5.22.10", "systeminformation": "5.22.9",
"undici": "6.18.2" "undici": "6.18.1"
}, },
"devDependencies": { "devDependencies": {
"@types/ms": "0.7.34", "@types/ms": "0.7.34",
"@types/node": "20.14.2", "@types/node": "20.12.12",
"@types/node-cron": "3.0.11", "@types/node-cron": "3.0.11",
"typescript": "5.4.5" "typescript": "5.4.5"
} }

View File

@ -14,7 +14,7 @@ export default class MessageDelete {
{name: 'Sent at', value: `<t:${Math.round(msg.createdTimestamp/1000)}>\n<t:${Math.round(msg.createdTimestamp/1000)}:R>`} {name: 'Sent at', value: `<t:${Math.round(msg.createdTimestamp/1000)}>\n<t:${Math.round(msg.createdTimestamp/1000)}:R>`}
) )
const attachments:string[] = []; const attachments:string[] = [];
for (const attachment of msg.attachments.values()) attachments.push(attachment.proxyURL); msg.attachments.forEach(x=>attachments.push(x.url));
(client.channels.cache.get(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed], files: attachments}); (client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed], files: attachments})
} }
} }

123
yarn.lock
View File

@ -5,18 +5,18 @@ __metadata:
version: 8 version: 8
cacheKey: 10 cacheKey: 10
"@babel/runtime@npm:^7.24.6": "@babel/runtime@npm:^7.24.4":
version: 7.24.7 version: 7.24.6
resolution: "@babel/runtime@npm:7.24.7" resolution: "@babel/runtime@npm:7.24.6"
dependencies: dependencies:
regenerator-runtime: "npm:^0.14.0" regenerator-runtime: "npm:^0.14.0"
checksum: 10/7b77f566165dee62db3db0296e71d08cafda3f34e1b0dcefcd68427272e17c1704f4e4369bff76651b07b6e49d3ea5a0ce344818af9116e9292e4381e0918c76 checksum: 10/6c4e12731cd9206a883c19d48fa04f6aaaf7ee83f049b22631e6521b866edc20832b4d5db30aa86d8ae799c4dcf57761fe8a4af2bf7e233245c079c1dafb5668
languageName: node languageName: node
linkType: hard linkType: hard
"@discordjs/builders@npm:^1.8.2": "@discordjs/builders@npm:^1.8.1":
version: 1.8.2 version: 1.8.1
resolution: "@discordjs/builders@npm:1.8.2" resolution: "@discordjs/builders@npm:1.8.1"
dependencies: dependencies:
"@discordjs/formatters": "npm:^0.4.0" "@discordjs/formatters": "npm:^0.4.0"
"@discordjs/util": "npm:^1.1.0" "@discordjs/util": "npm:^1.1.0"
@ -25,7 +25,7 @@ __metadata:
fast-deep-equal: "npm:^3.1.3" fast-deep-equal: "npm:^3.1.3"
ts-mixer: "npm:^6.0.4" ts-mixer: "npm:^6.0.4"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.2"
checksum: 10/64de3c72fdde202cc168ae5e42c05df44d3a4323cc1706fa667077b5bef1d60cf10d8e871bd4c758140432252f3c9c2747370f56fa0ff08c55669cb0a1e516d7 checksum: 10/5540939f5e56ba7414eb6e53e31500312f7ec0909d9bce495d1876f2b2f70e09d7e1862a8065ddf16fb8d041722d6a464f1b928d917a121f02bdb1fa78e4a09d
languageName: node languageName: node
linkType: hard linkType: hard
@ -76,9 +76,9 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@discordjs/ws@npm:^1.1.1": "@discordjs/ws@npm:^1.1.0":
version: 1.1.1 version: 1.1.0
resolution: "@discordjs/ws@npm:1.1.1" resolution: "@discordjs/ws@npm:1.1.0"
dependencies: dependencies:
"@discordjs/collection": "npm:^2.1.0" "@discordjs/collection": "npm:^2.1.0"
"@discordjs/rest": "npm:^2.3.0" "@discordjs/rest": "npm:^2.3.0"
@ -89,7 +89,7 @@ __metadata:
discord-api-types: "npm:0.37.83" discord-api-types: "npm:0.37.83"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.2"
ws: "npm:^8.16.0" ws: "npm:^8.16.0"
checksum: 10/d926fee9e6c6d9e01b574340bdec848baf620b08d34fa9d1547aadb806b5e25317707a82867b36ff6f75feefa373fa208648fac54e01038adb5dfc91c9e55349 checksum: 10/d22b6b82ac9a666f97ce23828d60c38125ea087e21a1bdf7d2ce3f5b7d0a0df58da5be096c5f1039ad0d859203ada96f93de1673b47b2b0dd7342e2979057ce7
languageName: node languageName: node
linkType: hard linkType: hard
@ -533,12 +533,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node@npm:*, @types/node@npm:20.14.2": "@types/node@npm:*, @types/node@npm:20.12.12":
version: 20.14.2 version: 20.12.12
resolution: "@types/node@npm:20.14.2" resolution: "@types/node@npm:20.12.12"
dependencies: dependencies:
undici-types: "npm:~5.26.4" undici-types: "npm:~5.26.4"
checksum: 10/c38e47b190fa0a8bdfde24b036dddcf9401551f2fb170a90ff33625c7d6f218907e81c74e0fa6e394804a32623c24c60c50e249badc951007830f0d02c48ee0f checksum: 10/e3945da0a3017bdc1f88f15bdfb823f526b2a717bd58d4640082d6eb0bd2794b5c99bfb914b9e9324ec116dce36066990353ed1c777e8a7b0641f772575793c4
languageName: node languageName: node
linkType: hard linkType: hard
@ -665,20 +665,20 @@ __metadata:
"@sequelize/postgres": "npm:7.0.0-alpha.41" "@sequelize/postgres": "npm:7.0.0-alpha.41"
"@toast/tokenservice-client": "npm:1.2.8" "@toast/tokenservice-client": "npm:1.2.8"
"@types/ms": "npm:0.7.34" "@types/ms": "npm:0.7.34"
"@types/node": "npm:20.14.2" "@types/node": "npm:20.12.12"
"@types/node-cron": "npm:3.0.11" "@types/node-cron": "npm:3.0.11"
ansi-colors: "npm:4.1.3" ansi-colors: "npm:4.1.3"
dayjs: "npm:1.11.11" dayjs: "npm:1.11.11"
discord.js: "npm:14.15.3" discord.js: "npm:14.15.2"
fast-xml-parser: "npm:4.4.0" fast-xml-parser: "npm:4.4.0"
mathjs: "npm:13.0.0" mathjs: "npm:12.4.2"
ms: "npm:2.1.3" ms: "npm:2.1.3"
node-cron: "npm:3.0.3" node-cron: "npm:3.0.3"
redis: "npm:4.6.14" redis: "npm:4.6.14"
simple-git: "npm:3.24.0" simple-git: "npm:3.24.0"
systeminformation: "npm:5.22.10" systeminformation: "npm:5.22.9"
typescript: "npm:5.4.5" typescript: "npm:5.4.5"
undici: "npm:6.18.2" undici: "npm:6.18.1"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -690,14 +690,14 @@ __metadata:
linkType: hard linkType: hard
"debug@npm:^4.1.1, debug@npm:^4.3.4": "debug@npm:^4.1.1, debug@npm:^4.3.4":
version: 4.3.5 version: 4.3.4
resolution: "debug@npm:4.3.5" resolution: "debug@npm:4.3.4"
dependencies: dependencies:
ms: "npm:2.1.2" ms: "npm:2.1.2"
peerDependenciesMeta: peerDependenciesMeta:
supports-color: supports-color:
optional: true optional: true
checksum: 10/cb6eab424c410e07813ca1392888589972ce9a32b8829c6508f5e1f25f3c3e70a76731610ae55b4bbe58d1a2fffa1424b30e97fa8d394e49cd2656a9643aedd2 checksum: 10/0073c3bcbd9cb7d71dd5f6b55be8701af42df3e56e911186dfa46fac3a5b9eb7ce7f377dd1d3be6db8977221f8eb333d945216f645cf56f6b688cd484837d255
languageName: node languageName: node
linkType: hard linkType: hard
@ -722,23 +722,23 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"discord.js@npm:14.15.3": "discord.js@npm:14.15.2":
version: 14.15.3 version: 14.15.2
resolution: "discord.js@npm:14.15.3" resolution: "discord.js@npm:14.15.2"
dependencies: dependencies:
"@discordjs/builders": "npm:^1.8.2" "@discordjs/builders": "npm:^1.8.1"
"@discordjs/collection": "npm:1.5.3" "@discordjs/collection": "npm:1.5.3"
"@discordjs/formatters": "npm:^0.4.0" "@discordjs/formatters": "npm:^0.4.0"
"@discordjs/rest": "npm:^2.3.0" "@discordjs/rest": "npm:^2.3.0"
"@discordjs/util": "npm:^1.1.0" "@discordjs/util": "npm:^1.1.0"
"@discordjs/ws": "npm:^1.1.1" "@discordjs/ws": "npm:^1.1.0"
"@sapphire/snowflake": "npm:3.5.3" "@sapphire/snowflake": "npm:3.5.3"
discord-api-types: "npm:0.37.83" discord-api-types: "npm:0.37.83"
fast-deep-equal: "npm:3.1.3" fast-deep-equal: "npm:3.1.3"
lodash.snakecase: "npm:4.1.1" lodash.snakecase: "npm:4.1.1"
tslib: "npm:2.6.2" tslib: "npm:2.6.2"
undici: "npm:6.13.0" undici: "npm:6.13.0"
checksum: 10/b18decbe8a0f1a3f569eb144be2a7039a08068131be2760190ac70fefdeb255cfed10ee0368e488f6c38d53d190c2988a6cc50c7db57a802cf54bb20cc47dc2e checksum: 10/041ffe7b92e423ed707ebbab9eff9f79604b81784c3251a6b09f19e84109a1090fa814cbb477078d28f2440e4161715a01636eb630569bc594749d5fe51b0425
languageName: node languageName: node
linkType: hard linkType: hard
@ -805,10 +805,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"fraction.js@npm:^4.3.7": "fraction.js@npm:4.3.4":
version: 4.3.7 version: 4.3.4
resolution: "fraction.js@npm:4.3.7" resolution: "fraction.js@npm:4.3.4"
checksum: 10/bb5ebcdeeffcdc37b68ead3bdfc244e68de188e0c64e9702197333c72963b95cc798883ad16adc21588088b942bca5b6a6ff4aeb1362d19f6f3b629035dc15f5 checksum: 10/3a1e6b268038ffdea625fab6a8d155d7ab644d35d0c99bc59084bfd29fbc714f3a38381b0627751ddb5f188bcde0b3f48c27e80eeb2ecd440825a7d2cd2bf9f1
languageName: node languageName: node
linkType: hard linkType: hard
@ -893,22 +893,22 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"mathjs@npm:13.0.0": "mathjs@npm:12.4.2":
version: 13.0.0 version: 12.4.2
resolution: "mathjs@npm:13.0.0" resolution: "mathjs@npm:12.4.2"
dependencies: dependencies:
"@babel/runtime": "npm:^7.24.6" "@babel/runtime": "npm:^7.24.4"
complex.js: "npm:^2.1.1" complex.js: "npm:^2.1.1"
decimal.js: "npm:^10.4.3" decimal.js: "npm:^10.4.3"
escape-latex: "npm:^1.2.0" escape-latex: "npm:^1.2.0"
fraction.js: "npm:^4.3.7" fraction.js: "npm:4.3.4"
javascript-natural-sort: "npm:^0.7.1" javascript-natural-sort: "npm:^0.7.1"
seedrandom: "npm:^3.0.5" seedrandom: "npm:^3.0.5"
tiny-emitter: "npm:^2.1.0" tiny-emitter: "npm:^2.1.0"
typed-function: "npm:^4.1.1" typed-function: "npm:^4.1.1"
bin: bin:
mathjs: bin/cli.js mathjs: bin/cli.js
checksum: 10/dff62ad0d9ad9c6f566e91b4cf304173d5d3ec1545f21ca1e4140691ca49a82b846abf8e540c34dabb1e7acd1d5474b654c5860a6b3f7c3175bc5bfc3dfbc759 checksum: 10/4b88ac1b137d00b8f3d66f4d1662d3670399390b59623ecf3ab7d587ba18be7b97ce9c5b07e953029ac75f48567d675c99323889ae231eb071ddd84db5dd699c
languageName: node languageName: node
linkType: hard linkType: hard
@ -1050,8 +1050,8 @@ __metadata:
linkType: hard linkType: hard
"pg@npm:^8.11.3": "pg@npm:^8.11.3":
version: 8.12.0 version: 8.11.5
resolution: "pg@npm:8.12.0" resolution: "pg@npm:8.11.5"
dependencies: dependencies:
pg-cloudflare: "npm:^1.1.1" pg-cloudflare: "npm:^1.1.1"
pg-connection-string: "npm:^2.6.4" pg-connection-string: "npm:^2.6.4"
@ -1067,7 +1067,7 @@ __metadata:
peerDependenciesMeta: peerDependenciesMeta:
pg-native: pg-native:
optional: true optional: true
checksum: 10/ce39af0e85d42bf5fc8dcc02c57b38d4cb203fea937688509a77c0b005a54d4821e5e5963a5663934d76994eab42381698f08a44e21544b4545fd9d142dcfd12 checksum: 10/1510bc42943ea1749bfffac3f7ebae52ae638dc798e38786552fc67ffc0b2e4bd54456e7fd5cda7e805f30a0a59126c98e8c59afa88b6952f95411f16a16f709
languageName: node languageName: node
linkType: hard linkType: hard
@ -1262,12 +1262,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"systeminformation@npm:5.22.10": "systeminformation@npm:5.22.9":
version: 5.22.10 version: 5.22.9
resolution: "systeminformation@npm:5.22.10" resolution: "systeminformation@npm:5.22.9"
bin: bin:
systeminformation: lib/cli.js systeminformation: lib/cli.js
checksum: 10/1c75856e7bb107875f4f8e9f6eff3adf2dac3fdcce035ce23ce02ed860b9607c22df5c8aa044e15e0da56fc045486c6e0ca0ff0d74f6b5df55c7e34b63725879 checksum: 10/c2006c817a362f309f058a4a1765e857d7986daa60260fe8f9574a3587a37c9b31aa3c5977a37f5a22b90acefc254eecf3e47ac4bd629072b4576fa171e13eac
conditions: (os=darwin | os=linux | os=win32 | os=freebsd | os=openbsd | os=netbsd | os=sunos | os=android) conditions: (os=darwin | os=linux | os=win32 | os=freebsd | os=openbsd | os=netbsd | os=sunos | os=android)
languageName: node languageName: node
linkType: hard linkType: hard
@ -1302,31 +1302,24 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"tslib@npm:2.6.2": "tslib@npm:2.6.2, tslib@npm:^2.6.2":
version: 2.6.2 version: 2.6.2
resolution: "tslib@npm:2.6.2" resolution: "tslib@npm:2.6.2"
checksum: 10/bd26c22d36736513980091a1e356378e8b662ded04204453d353a7f34a4c21ed0afc59b5f90719d4ba756e581a162ecbf93118dc9c6be5acf70aa309188166ca checksum: 10/bd26c22d36736513980091a1e356378e8b662ded04204453d353a7f34a4c21ed0afc59b5f90719d4ba756e581a162ecbf93118dc9c6be5acf70aa309188166ca
languageName: node languageName: node
linkType: hard linkType: hard
"tslib@npm:^2.6.2":
version: 2.6.3
resolution: "tslib@npm:2.6.3"
checksum: 10/52109bb681f8133a2e58142f11a50e05476de4f075ca906d13b596ae5f7f12d30c482feb0bff167ae01cfc84c5803e575a307d47938999246f5a49d174fc558c
languageName: node
linkType: hard
"type-fest@npm:^4.14.0": "type-fest@npm:^4.14.0":
version: 4.19.0 version: 4.18.3
resolution: "type-fest@npm:4.19.0" resolution: "type-fest@npm:4.18.3"
checksum: 10/746294c1f463913425a4b40e9160ed1ea5cd1f877587789cbd42e01c6b67be9c55daf75e0d4787da584b98a09487df69e89b44c934d497e5d035800e115dc1e9 checksum: 10/eb750920d0ef3639177f581edd6489d972c5c5827abb602a9c9662889aad148a7d558257e36c563f1beb81a2e417faec52ecec9799b28531d8335856f91e6dff
languageName: node languageName: node
linkType: hard linkType: hard
"typed-function@npm:^4.1.1": "typed-function@npm:^4.1.1":
version: 4.2.1 version: 4.1.1
resolution: "typed-function@npm:4.2.1" resolution: "typed-function@npm:4.1.1"
checksum: 10/2218d6e4a56c414c2d9c1e3cf2f0d26d6a8848d3e875cbd0eec5a791c25c4ee182cb488a6077b45b110334de7bd7f44fb049feac9e5216bef3172c22acbbf501 checksum: 10/0ef538d5f02e5c40659cccc14b5f2727f0e4181f11d91bb7897327c33cc2893de7e92343b6b32e1bb15e44a215a1e92e27ab2aa1353b100a9a2697abf2989a0c
languageName: node languageName: node
linkType: hard linkType: hard
@ -1371,10 +1364,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"undici@npm:6.18.2, undici@npm:^6.15.0": "undici@npm:6.18.1, undici@npm:^6.15.0":
version: 6.18.2 version: 6.18.1
resolution: "undici@npm:6.18.2" resolution: "undici@npm:6.18.1"
checksum: 10/27c66d84d02c2e4375ad30fae081fa1f4c4158e0880f51bb5ea7b4a6fc0a6582fa68084d45c6cae3cb56a754607191a973621a15d271111cee790bf0925db00b checksum: 10/212b636a108bd0dd9c23cd06c802af3811897dc22c95d371636b58ba16d7864c92b663f0e5ec389a2ab197923dfae6d8fdee8e3b5caa789057e4c659845ab561
languageName: node languageName: node
linkType: hard linkType: hard