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

Compare commits

..

No commits in common. "872c835e3509a2bcf09a37f0033987199df6a53a" and "bb7a388ab2d3485d9764e1e91e573e7b5174b3ef" have entirely different histories.

7 changed files with 7 additions and 24 deletions

4
.pnp.cjs generated
View File

@ -46,7 +46,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["systeminformation", "npm:5.18.12"],\
["typescript", "patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=5da071"],\
["xml-js", "npm:1.6.11"],\
["youtube-sr", "npm:4.3.4"],\
["ytdl-core", "npm:4.11.5"]\
],\
"linkType": "SOFT"\
@ -1036,7 +1035,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["systeminformation", "npm:5.18.12"],\
["typescript", "patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=5da071"],\
["xml-js", "npm:1.6.11"],\
["youtube-sr", "npm:4.3.4"],\
["ytdl-core", "npm:4.11.5"]\
],\
"linkType": "SOFT"\
@ -1160,7 +1158,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/youtube-sr", null],\
["discord.js", "npm:14.12.1"],\
["libsodium-wrappers", "npm:0.7.11"],\
["youtube-sr", "npm:4.3.4"]\
["youtube-sr", null]\
],\
"packagePeers": [\
"@discord-player/extractor",\

View File

@ -1,6 +1,3 @@
# main; node:current-alpine3.18
# backup; node:current-bookworm
FROM node:current-alpine3.18
WORKDIR /bot
RUN yarn
CMD ["yarn", "node", "dist/index.js"]

View File

@ -1,9 +0,0 @@
version: '3'
services:
bot:
container_name: 'Daggerbot'
image: 'git.toast-server.net/toast/daggerbot-ts:alpine3.18'
volumes:
- .:/bot
network_mode: host

View File

@ -39,11 +39,10 @@
"moment": "2.29.4",
"mongoose": "7.4.2",
"ms": "2.1.3",
"prism-media": "1.3.5",
"prism-media": "^1.3.5",
"systeminformation": "5.18.12",
"typescript": "5.1.6",
"xml-js": "1.6.11",
"youtube-sr": "4.3.4",
"ytdl-core": "4.11.5"
},
"devDependencies": {

View File

@ -107,12 +107,12 @@ export default class TClient extends Client {
for await (const file of readdirSync('dist/events')){
const eventFile = await import(`./events/${file}`);
this.on(file.replace('.js',''), async(...args)=>eventFile.default.run(this,...args))
}
};
for await (const file of readdirSync('dist/commands')){
const command = await import(`./commands/${file}`);
this.commands.set(command.default.data.name,{command, uses: 0});
this.registry.push(command.default.data.toJSON())
}
};
}
formatTime(integer: number, accuracy = 1, options?: formatTimeOpt){
let achievedAccuracy = 0;

View File

@ -16,7 +16,6 @@ client.on('ready', async()=>{
},300000)
});
if (client.config.botSwitches.registerCommands){
console.log('Total commands: '+client.registry.length) //Debugging reasons.
client.config.whitelistedServers.forEach(guildId=>(client.guilds.cache.get(guildId) as Discord.Guild).commands.set(client.registry).catch((e:Error)=>{
console.log(`Couldn't register slash commands for ${guildId} because`, e.stack);
(client.channels.resolve(client.config.mainServer.channels.errors) as Discord.TextChannel).send(`Cannot register slash commands for **${client.guilds.cache.get(guildId).name}** (\`${guildId}\`):\n\`\`\`${e.message}\`\`\``)

View File

@ -848,11 +848,10 @@ __metadata:
moment: 2.29.4
mongoose: 7.4.2
ms: 2.1.3
prism-media: 1.3.5
prism-media: ^1.3.5
systeminformation: 5.18.12
typescript: 5.1.6
xml-js: 1.6.11
youtube-sr: 4.3.4
ytdl-core: 4.11.5
languageName: unknown
linkType: soft
@ -1980,7 +1979,7 @@ __metadata:
languageName: node
linkType: hard
"prism-media@npm:1.3.5, prism-media@npm:^1.3.5":
"prism-media@npm:^1.3.5":
version: 1.3.5
resolution: "prism-media@npm:1.3.5"
peerDependencies:
@ -2577,7 +2576,7 @@ __metadata:
languageName: node
linkType: hard
"youtube-sr@npm:4.3.4, youtube-sr@npm:^4.3.4":
"youtube-sr@npm:^4.3.4":
version: 4.3.4
resolution: "youtube-sr@npm:4.3.4"
checksum: e097f2a82ddc51a580e7b8556aba83968ee580ad29a8d035cbfdc497c4a6f227b3e3ef0bf4648c6edaf25aed18b872a0fad8fda0554d270129f7c5e60e4a01ef