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

Compare commits

...

No commits in common. "19903dbcc9be5efc3733c19caba9859f48ac4185" and "7c40fdb83ac5752c8f74ac3d8ceb8d20eb449088" have entirely different histories.

4 changed files with 48 additions and 48 deletions

View File

@ -29,20 +29,20 @@
"dependencies": { "dependencies": {
"@napi-rs/canvas": "0.1.52", "@napi-rs/canvas": "0.1.52",
"@octokit/rest": "20.1.1", "@octokit/rest": "20.1.1",
"@sequelize/core": "7.0.0-alpha.41", "@sequelize/core": "7.0.0-alpha.40",
"@sequelize/postgres": "7.0.0-alpha.41", "@sequelize/postgres": "7.0.0-alpha.40",
"@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.2", "discord.js": "14.15.2",
"fast-xml-parser": "4.4.0", "fast-xml-parser": "4.3.6",
"mathjs": "12.4.2", "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.13",
"simple-git": "3.24.0", "simple-git": "3.24.0",
"systeminformation": "5.22.9", "systeminformation": "5.22.9",
"undici": "6.17.0" "undici": "6.16.1"
}, },
"devDependencies": { "devDependencies": {
"@types/ms": "0.7.34", "@types/ms": "0.7.34",

View File

@ -21,6 +21,7 @@ async function fetchData(client:TClient, interaction:Discord.ChatInputCommandInt
} }
const logPrefix = 'MPDB'; const logPrefix = 'MPDB';
const MAP_POOL_HOOKMSG = '1141293129673232435';
const PALLET_FILTER = ['PALLETS', 'BIGBAGPALLETS']; const PALLET_FILTER = ['PALLETS', 'BIGBAGPALLETS'];
export default class MP { export default class MP {
@ -165,7 +166,7 @@ export default class MP {
(client.channels.cache.get(client.config.dcServer.channels.mpmod_chat) as Discord.TextChannel).send({files: [new client.attachment( (client.channels.cache.get(client.config.dcServer.channels.mpmod_chat) as Discord.TextChannel).send({files: [new client.attachment(
Buffer.from(JSON.stringify({ Buffer.from(JSON.stringify({
map_names: msg.embeds[0].description.split('\n').map(x=>x.slice(3).replace(/\*\*/g, '')), map_names: msg.embeds[0].description.split('\n').map(x=>x.slice(3)),
votes: msg.reactions.cache.map(x=>x.count) votes: msg.reactions.cache.map(x=>x.count)
}, null, 2)), {name: `pollResults-${msg.id}.json`}) }, null, 2)), {name: `pollResults-${msg.id}.json`})
]}); ]});
@ -177,7 +178,7 @@ export default class MP {
if (client.config.dcServer.id === interaction.guildId) { if (client.config.dcServer.id === interaction.guildId) {
if (!interaction.member.roles.cache.has(client.config.dcServer.roles.mpmod) && !client.config.whitelist.includes(interaction.member.id)) return MessageTool.youNeedRole(interaction, 'mpmod'); if (!interaction.member.roles.cache.has(client.config.dcServer.roles.mpmod) && !client.config.whitelist.includes(interaction.member.id)) return MessageTool.youNeedRole(interaction, 'mpmod');
} }
const suggestionPool = await (interaction.guild.channels.cache.get(client.config.dcServer.channels.mpmod_chat) as Discord.TextChannel).messages.fetch(MPChannels.modChat); const suggestionPool = await (interaction.guild.channels.cache.get(client.config.dcServer.channels.mpmod_chat) as Discord.TextChannel).messages.fetch(MAP_POOL_HOOKMSG);
interaction.reply({embeds: [suggestionPool.embeds[0]]}); interaction.reply({embeds: [suggestionPool.embeds[0]]});
}, // Server management group }, // Server management group
create_server: async()=>{ create_server: async()=>{

View File

@ -21,7 +21,6 @@ export const MPChannels = {
announcements: '1084864116776251463', announcements: '1084864116776251463',
mainMpChat: '468835769092669461', mainMpChat: '468835769092669461',
serverInfo: '543494084363288637', serverInfo: '543494084363288637',
modChat: '1141293129673232435'
} }
interface IServerExt extends IServer { interface IServerExt extends IServer {

View File

@ -369,14 +369,14 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@redis/client@npm:1.5.16": "@redis/client@npm:1.5.14":
version: 1.5.16 version: 1.5.14
resolution: "@redis/client@npm:1.5.16" resolution: "@redis/client@npm:1.5.14"
dependencies: dependencies:
cluster-key-slot: "npm:1.1.2" cluster-key-slot: "npm:1.1.2"
generic-pool: "npm:3.9.0" generic-pool: "npm:3.9.0"
yallist: "npm:4.0.0" yallist: "npm:4.0.0"
checksum: 10/54bd45dcdb980e9682fc9aaad36607a34b6c05ebc733fc9a132db33ce77b3ff63c229d8d8b43ce2d7db115f31ff2fefcbcc7dceeaa1fc88c03e7c8012e456adf checksum: 10/aab53eff9456e0a5e0ef78ce16db3eca4b837274b8285c5d66ced549573dbacf75972935806911274d6dd906a53d982ef9b1a6f11a8efe4a18efa94ec9c2a4b3
languageName: node languageName: node
linkType: hard linkType: hard
@ -440,11 +440,11 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@sequelize/core@npm:7.0.0-alpha.41": "@sequelize/core@npm:7.0.0-alpha.40":
version: 7.0.0-alpha.41 version: 7.0.0-alpha.40
resolution: "@sequelize/core@npm:7.0.0-alpha.41" resolution: "@sequelize/core@npm:7.0.0-alpha.40"
dependencies: dependencies:
"@sequelize/utils": "npm:7.0.0-alpha.41" "@sequelize/utils": "npm:7.0.0-alpha.40"
"@types/debug": "npm:^4.1.12" "@types/debug": "npm:^4.1.12"
"@types/validator": "npm:^13.11.9" "@types/validator": "npm:^13.11.9"
bnf-parser: "npm:^3.1.6" bnf-parser: "npm:^3.1.6"
@ -462,16 +462,16 @@ __metadata:
type-fest: "npm:^4.14.0" type-fest: "npm:^4.14.0"
uuid: "npm:^9.0.1" uuid: "npm:^9.0.1"
validator: "npm:^13.11.0" validator: "npm:^13.11.0"
checksum: 10/d788b452e2ed068e879e1eca45790ab855128d3980ce64049a8833b6157cd3a5ac1505cf5f168fe3f54fab40c4a7a6a93c72859f8891220d65e2b04173029b44 checksum: 10/8695cd2a71ba15ae27cb2fb0cec2ddca0a936e64e704eff0e3e3d49538f72fa69baf40cfc9ca9e2e3197a3a986a1b7890bd862cf3c92b305314122e7888024ce
languageName: node languageName: node
linkType: hard linkType: hard
"@sequelize/postgres@npm:7.0.0-alpha.41": "@sequelize/postgres@npm:7.0.0-alpha.40":
version: 7.0.0-alpha.41 version: 7.0.0-alpha.40
resolution: "@sequelize/postgres@npm:7.0.0-alpha.41" resolution: "@sequelize/postgres@npm:7.0.0-alpha.40"
dependencies: dependencies:
"@sequelize/core": "npm:7.0.0-alpha.41" "@sequelize/core": "npm:7.0.0-alpha.40"
"@sequelize/utils": "npm:7.0.0-alpha.41" "@sequelize/utils": "npm:7.0.0-alpha.40"
"@types/pg": "npm:^8.11.4" "@types/pg": "npm:^8.11.4"
lodash: "npm:^4.17.21" lodash: "npm:^4.17.21"
pg: "npm:^8.11.3" pg: "npm:^8.11.3"
@ -480,17 +480,17 @@ __metadata:
postgres-array: "npm:^3.0.2" postgres-array: "npm:^3.0.2"
semver: "npm:^7.6.0" semver: "npm:^7.6.0"
wkx: "npm:^0.5.0" wkx: "npm:^0.5.0"
checksum: 10/a30115a4a432a0bd04e2ccf090fb22daedd630ffaac3f285658fad978b243b18366639e967a0f9ba7b32164d4711a85ca2d83afed410109a480a96f370e723af checksum: 10/7661c42cd42b8033f9589bc27f1747a9501c80b0a683d6f1fc9f8919a4acbaa8597f2d58a04557e8f4a923282a251e7376f09935d766808e17039f674458b423
languageName: node languageName: node
linkType: hard linkType: hard
"@sequelize/utils@npm:7.0.0-alpha.41": "@sequelize/utils@npm:7.0.0-alpha.40":
version: 7.0.0-alpha.41 version: 7.0.0-alpha.40
resolution: "@sequelize/utils@npm:7.0.0-alpha.41" resolution: "@sequelize/utils@npm:7.0.0-alpha.40"
dependencies: dependencies:
"@types/lodash": "npm:^4.17.0" "@types/lodash": "npm:^4.17.0"
lodash: "npm:^4.17.21" lodash: "npm:^4.17.21"
checksum: 10/3f6796b19d53f8e68892f85de3495cc2663d0af163d56a5edd2af76c7d341529ccc4ac556ad4a299c53a804520133d8574cfc1c951b376e4b596d611aa687417 checksum: 10/09de9eecb3f014465725c9e2bb7afb269ab5de5d6cb1229079133d009044e6f2ddf3b70822f0bf44dc51f01389ae6566e3a280e20946f74ae4173cd0a4546db2
languageName: node languageName: node
linkType: hard linkType: hard
@ -513,9 +513,9 @@ __metadata:
linkType: hard linkType: hard
"@types/lodash@npm:^4.17.0": "@types/lodash@npm:^4.17.0":
version: 4.17.4 version: 4.17.1
resolution: "@types/lodash@npm:4.17.4" resolution: "@types/lodash@npm:4.17.1"
checksum: 10/3ec19f9fc48200006e71733e08bcb1478b0398673657fcfb21a8643d41a80bcce09a01000077c3b23a3c6d86b9b314abe0672a8fdfc0fd66b893bd41955cfab8 checksum: 10/384bdd29348a000f8e815f94839a1a8c7f5a4ca856b016ade7f2abdc1df0b4e3e009c113b69db320a8fde51d1f38e60c19462b9bf3e82e0e2e32d3ac3e7ba2c4
languageName: node languageName: node
linkType: hard linkType: hard
@ -661,8 +661,8 @@ __metadata:
dependencies: dependencies:
"@napi-rs/canvas": "npm:0.1.52" "@napi-rs/canvas": "npm:0.1.52"
"@octokit/rest": "npm:20.1.1" "@octokit/rest": "npm:20.1.1"
"@sequelize/core": "npm:7.0.0-alpha.41" "@sequelize/core": "npm:7.0.0-alpha.40"
"@sequelize/postgres": "npm:7.0.0-alpha.41" "@sequelize/postgres": "npm:7.0.0-alpha.40"
"@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.12.12" "@types/node": "npm:20.12.12"
@ -670,15 +670,15 @@ __metadata:
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.2" discord.js: "npm:14.15.2"
fast-xml-parser: "npm:4.4.0" fast-xml-parser: "npm:4.3.6"
mathjs: "npm:12.4.2" 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.13"
simple-git: "npm:3.24.0" simple-git: "npm:3.24.0"
systeminformation: "npm:5.22.9" systeminformation: "npm:5.22.9"
typescript: "npm:5.4.5" typescript: "npm:5.4.5"
undici: "npm:6.17.0" undici: "npm:6.16.1"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -776,14 +776,14 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"fast-xml-parser@npm:4.4.0": "fast-xml-parser@npm:4.3.6":
version: 4.4.0 version: 4.3.6
resolution: "fast-xml-parser@npm:4.4.0" resolution: "fast-xml-parser@npm:4.3.6"
dependencies: dependencies:
strnum: "npm:^1.0.5" strnum: "npm:^1.0.5"
bin: bin:
fxparser: src/cli/cli.js fxparser: src/cli/cli.js
checksum: 10/f1592fa810d3923c46c7037d5adf1c309580d1d14780312019f33e4967f6ffcb5632168a5e889fe9d30794f6a087a0a095bb21cdf62320a96c6b304395212658 checksum: 10/3e431e594960f04996e60a01fb51d8f4346138a7ba60d97244bf7866a3072eaf2f6dc73008d7b07871b98b606a8d7db955efdeae787992f685dd0e5bcc67c36a
languageName: node languageName: node
linkType: hard linkType: hard
@ -1161,17 +1161,17 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"redis@npm:4.6.14": "redis@npm:4.6.13":
version: 4.6.14 version: 4.6.13
resolution: "redis@npm:4.6.14" resolution: "redis@npm:4.6.13"
dependencies: dependencies:
"@redis/bloom": "npm:1.2.0" "@redis/bloom": "npm:1.2.0"
"@redis/client": "npm:1.5.16" "@redis/client": "npm:1.5.14"
"@redis/graph": "npm:1.1.1" "@redis/graph": "npm:1.1.1"
"@redis/json": "npm:1.0.6" "@redis/json": "npm:1.0.6"
"@redis/search": "npm:1.1.6" "@redis/search": "npm:1.1.6"
"@redis/time-series": "npm:1.0.5" "@redis/time-series": "npm:1.0.5"
checksum: 10/5a00d678ea39a2e2fdaa961b593873e21677922b72671b00ab0feda3469506bc89c13221e56b1c00994504538ea45dd7ed6cde5d8be8da308a26f5d2424d0f85 checksum: 10/cc66182b8fa78c2a63b5300b15fa6fbf8908773d78bc5ca3960018f465595b51dfecaebe8c848111a3b723530f17bdaa1c186f73875cd9ba351f32d2e5e14d5f
languageName: node languageName: node
linkType: hard linkType: hard
@ -1364,10 +1364,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"undici@npm:6.17.0, undici@npm:^6.15.0": "undici@npm:6.16.1, undici@npm:^6.15.0":
version: 6.17.0 version: 6.16.1
resolution: "undici@npm:6.17.0" resolution: "undici@npm:6.16.1"
checksum: 10/e54ae88f9ce4e923f2d1e209ad42d028e7d2b207ba81e6c1f3af9533b4aa33863120f61bc58fb5f7d4dd6a90c2bc8c96d892dbb8bf5be80e0cd422f31d15a9ef checksum: 10/07dc67ec7a81323952effcbdb4aa674dd4f23aa872a03bdd4773d4e3b0b2aed268d116c8cfb012ecf272d2d1a0399055bf6ed134dd79b6a0920bab83ca483fcb
languageName: node languageName: node
linkType: hard linkType: hard