1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 04:40:59 -05:00

Compare commits

..

3 Commits

Author SHA1 Message Date
toast-ts
aca2d449c6 Remove additional layer 2024-02-29 22:23:11 +11:00
toast-ts
234cc6b89f Clear role mention when poll ends 2024-02-29 22:18:11 +11:00
toast-ts
bb2c21ed19 Update @types/node 2024-02-29 22:17:55 +11:00
5 changed files with 34 additions and 35 deletions

38
.pnp.cjs generated
View File

@ -30,7 +30,7 @@ const RAW_RUNTIME_STATE =
["@octokit/rest", "npm:20.0.2"],\
["@toast/tokenservice-client", "npm:1.0.12::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.12%2Ftokenservice-client-1.0.12.tgz"],\
["@types/ms", "npm:0.7.34"],\
["@types/node", "npm:20.11.21"],\
["@types/node", "npm:20.11.22"],\
["@types/node-cron", "npm:3.0.11"],\
["@types/pg", "npm:8.11.2"],\
["@types/sequelize", "npm:4.28.20"],\
@ -54,10 +54,10 @@ const RAW_RUNTIME_STATE =
}]\
]],\
["@babel/runtime", [\
["npm:7.23.9", {\
"packageLocation": "./.yarn/cache/@babel-runtime-npm-7.23.9-3b96e23cc2-9a520fe1bf.zip/node_modules/@babel/runtime/",\
["npm:7.24.0", {\
"packageLocation": "./.yarn/cache/@babel-runtime-npm-7.24.0-7eb1dd11a2-8d32c7e116.zip/node_modules/@babel/runtime/",\
"packageDependencies": [\
["@babel/runtime", "npm:7.23.9"],\
["@babel/runtime", "npm:7.24.0"],\
["regenerator-runtime", "npm:0.14.1"]\
],\
"linkType": "HARD"\
@ -151,10 +151,10 @@ const RAW_RUNTIME_STATE =
}]\
]],\
["@fastify/busboy", [\
["npm:2.1.0", {\
"packageLocation": "./.yarn/cache/@fastify-busboy-npm-2.1.0-960844a007-f22c1e5c52.zip/node_modules/@fastify/busboy/",\
["npm:2.1.1", {\
"packageLocation": "./.yarn/cache/@fastify-busboy-npm-2.1.1-455d8b6bf5-2bb8a7eca8.zip/node_modules/@fastify/busboy/",\
"packageDependencies": [\
["@fastify/busboy", "npm:2.1.0"]\
["@fastify/busboy", "npm:2.1.1"]\
],\
"linkType": "HARD"\
}]\
@ -632,7 +632,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-continuation-local-storage-npm-3.2.7-763e4dc12b-1f272b53bc.zip/node_modules/@types/continuation-local-storage/",\
"packageDependencies": [\
["@types/continuation-local-storage", "npm:3.2.7"],\
["@types/node", "npm:20.11.21"]\
["@types/node", "npm:20.11.22"]\
],\
"linkType": "HARD"\
}]\
@ -666,10 +666,10 @@ const RAW_RUNTIME_STATE =
}]\
]],\
["@types/node", [\
["npm:20.11.21", {\
"packageLocation": "./.yarn/cache/@types-node-npm-20.11.21-0adac022b0-a31ecc6a3c.zip/node_modules/@types/node/",\
["npm:20.11.22", {\
"packageLocation": "./.yarn/cache/@types-node-npm-20.11.22-9da21a332b-855058a432.zip/node_modules/@types/node/",\
"packageDependencies": [\
["@types/node", "npm:20.11.21"],\
["@types/node", "npm:20.11.22"],\
["undici-types", "npm:5.26.5"]\
],\
"linkType": "HARD"\
@ -689,7 +689,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-pg-npm-8.11.2-bdf321bea4-7c05cf63be.zip/node_modules/@types/pg/",\
"packageDependencies": [\
["@types/pg", "npm:8.11.2"],\
["@types/node", "npm:20.11.21"],\
["@types/node", "npm:20.11.22"],\
["pg-protocol", "npm:1.6.0"],\
["pg-types", "npm:4.0.2"]\
],\
@ -723,7 +723,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-ws-npm-8.5.10-a877a38f71-9b414dc5e0.zip/node_modules/@types/ws/",\
"packageDependencies": [\
["@types/ws", "npm:8.5.10"],\
["@types/node", "npm:20.11.21"]\
["@types/node", "npm:20.11.22"]\
],\
"linkType": "HARD"\
}],\
@ -731,7 +731,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-ws-npm-8.5.9-91d1b2ab07-7cf66383b8.zip/node_modules/@types/ws/",\
"packageDependencies": [\
["@types/ws", "npm:8.5.9"],\
["@types/node", "npm:20.11.21"]\
["@types/node", "npm:20.11.22"]\
],\
"linkType": "HARD"\
}]\
@ -799,7 +799,7 @@ const RAW_RUNTIME_STATE =
["@octokit/rest", "npm:20.0.2"],\
["@toast/tokenservice-client", "npm:1.0.12::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.12%2Ftokenservice-client-1.0.12.tgz"],\
["@types/ms", "npm:0.7.34"],\
["@types/node", "npm:20.11.21"],\
["@types/node", "npm:20.11.22"],\
["@types/node-cron", "npm:3.0.11"],\
["@types/pg", "npm:8.11.2"],\
["@types/sequelize", "npm:4.28.20"],\
@ -1019,7 +1019,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/mathjs-npm-12.4.0-4e73cebf2f-ee168a7e4b.zip/node_modules/mathjs/",\
"packageDependencies": [\
["mathjs", "npm:12.4.0"],\
["@babel/runtime", "npm:7.23.9"],\
["@babel/runtime", "npm:7.24.0"],\
["complex.js", "npm:2.1.1"],\
["decimal.js", "npm:10.4.3"],\
["escape-latex", "npm:1.2.0"],\
@ -1563,7 +1563,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/undici-npm-5.27.2-141c109c0a-2bf96b102f.zip/node_modules/undici/",\
"packageDependencies": [\
["undici", "npm:5.27.2"],\
["@fastify/busboy", "npm:2.1.0"]\
["@fastify/busboy", "npm:2.1.1"]\
],\
"linkType": "HARD"\
}],\
@ -1571,7 +1571,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/undici-npm-6.6.2-a0bd6785a6-e08ac9c279.zip/node_modules/undici/",\
"packageDependencies": [\
["undici", "npm:6.6.2"],\
["@fastify/busboy", "npm:2.1.0"]\
["@fastify/busboy", "npm:2.1.1"]\
],\
"linkType": "HARD"\
}]\
@ -1617,7 +1617,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/wkx-npm-0.5.0-fca5152cd8-b8975e33f9.zip/node_modules/wkx/",\
"packageDependencies": [\
["wkx", "npm:0.5.0"],\
["@types/node", "npm:20.11.21"]\
["@types/node", "npm:20.11.22"]\
],\
"linkType": "HARD"\
}]\

View File

@ -2,11 +2,10 @@ FROM node:21.1.0-bookworm-slim
ENV YARN_VERSION 4.1.0
ENV TZ Australia/Sydney
RUN yarn policies set-version $YARN_VERSION
RUN apt update -y && apt upgrade -y && apt install -y git fontconfig
RUN npm install -g typescript
RUN apt update -y && apt upgrade -y && apt install -y git fontconfig && npm install -g typescript
WORKDIR /Daggerbot
RUN git config --global --add safe.directory /Daggerbot
COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./
RUN yarn workspaces focus
RUN yarn
CMD [ "yarn", "node", "." ]

View File

@ -47,7 +47,7 @@
},
"devDependencies": {
"@types/ms": "0.7.34",
"@types/node": "20.11.21",
"@types/node": "20.11.22",
"@types/node-cron": "3.0.11",
"@types/pg": "8.11.2",
"@types/sequelize": "4.28.20",

View File

@ -164,7 +164,7 @@ export default class MP {
}, null, 2)), {name: `pollResults-${msg.id}.json`})
]});
msg.edit({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Voting has ended!').setDescription('The next map will be '+msg.embeds[0].description.split('\n')[msg.reactions.cache.map(x=>x.count).indexOf(Math.max(...msg.reactions.cache.map(x=>x.count)))].slice(3)).setFooter({text: `Poll ended by ${interaction.user.tag}`, iconURL: interaction.member.displayAvatarURL({extension: 'webp', size: 1024})})]}).then(()=>msg.reactions.removeAll());
msg.edit({content: null, embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Voting has ended!').setDescription('The next map will be '+msg.embeds[0].description.split('\n')[msg.reactions.cache.map(x=>x.count).indexOf(Math.max(...msg.reactions.cache.map(x=>x.count)))].slice(3)).setFooter({text: `Poll ended by ${interaction.user.tag}`, iconURL: interaction.member.displayAvatarURL({extension: 'webp', size: 1024})})]}).then(()=>msg.reactions.removeAll());
await interaction.reply(`Successfully ended the [poll](<https://discord.com/channels/${interaction.guildId}/${channels.announcements}/${msg.id}>) in <#${channels.announcements}>`)
},
maps: async()=>{

View File

@ -6,11 +6,11 @@ __metadata:
cacheKey: 10
"@babel/runtime@npm:^7.23.9":
version: 7.23.9
resolution: "@babel/runtime@npm:7.23.9"
version: 7.24.0
resolution: "@babel/runtime@npm:7.24.0"
dependencies:
regenerator-runtime: "npm:^0.14.0"
checksum: 10/9a520fe1bf72249f7dd60ff726434251858de15cccfca7aa831bd19d0d3fb17702e116ead82724659b8da3844977e5e13de2bae01eb8a798f2823a669f122be6
checksum: 10/8d32c7e116606ea322b89f9fde8ffae6be9503b549dc0d0abb38bd9dc26e87469b9fb7a66964cc089ee558fd0a97d304fb0a3cfec140694764fb0d71b6a6f5e4
languageName: node
linkType: hard
@ -94,9 +94,9 @@ __metadata:
linkType: hard
"@fastify/busboy@npm:^2.0.0":
version: 2.1.0
resolution: "@fastify/busboy@npm:2.1.0"
checksum: 10/f22c1e5c52dc350ddf9ba8be9f87b48d3ea5af00a37fd0a0d1e3e4b37f94d96763e514c68a350c7f570260fdd2f08b55ee090cdd879f92a03249eb0e3fd19113
version: 2.1.1
resolution: "@fastify/busboy@npm:2.1.1"
checksum: 10/2bb8a7eca8289ed14c9eb15239bc1019797454624e769b39a0b90ed204d032403adc0f8ed0d2aef8a18c772205fa7808cf5a1b91f21c7bfc7b6032150b1062c5
languageName: node
linkType: hard
@ -482,12 +482,12 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:*, @types/node@npm:20.11.21":
version: 20.11.21
resolution: "@types/node@npm:20.11.21"
"@types/node@npm:*, @types/node@npm:20.11.22":
version: 20.11.22
resolution: "@types/node@npm:20.11.22"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10/a31ecc6a3c615bca310ffe7dea23613153ff9e1e175c09d14198402b2cef9b1bb1bf3912aff6ffc6cb01b99a025ec6dd6474c797bfb0aaf83daf4edaea063760
checksum: 10/855058a4328c0c88bd0616b2fcfedc6504ca08c3e5304674dc2e6485147d7f523d0ff591e002c765a1ec761b26fc0934599d694a2749634e9244ba3bf02de703
languageName: node
linkType: hard
@ -589,7 +589,7 @@ __metadata:
"@octokit/rest": "npm:20.0.2"
"@toast/tokenservice-client": "npm:1.0.12"
"@types/ms": "npm:0.7.34"
"@types/node": "npm:20.11.21"
"@types/node": "npm:20.11.22"
"@types/node-cron": "npm:3.0.11"
"@types/pg": "npm:8.11.2"
"@types/sequelize": "npm:4.28.20"