mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-16 20:00:59 -05:00
Compare commits
3 Commits
87e255dbfd
...
5c09b71e89
Author | SHA1 | Date | |
---|---|---|---|
|
5c09b71e89 | ||
|
69a57327e2 | ||
|
64a224458b |
93
.pnp.cjs
generated
93
.pnp.cjs
generated
@ -30,7 +30,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"packageDependencies": [\
|
||||
["@discord-player/extractor", "npm:4.4.1"],\
|
||||
["@discordjs/opus", "npm:0.9.0"],\
|
||||
["@ffmpeg-installer/ffmpeg", "npm:1.1.0"],\
|
||||
["@octokit/auth-token", "npm:4.0.0"],\
|
||||
["@octokit/rest", "npm:20.0.1"],\
|
||||
["@types/ms", "npm:0.7.31"],\
|
||||
@ -39,6 +38,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["canvas", "npm:2.11.2"],\
|
||||
["discord-player", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.6.2"],\
|
||||
["discord.js", "npm:14.12.1"],\
|
||||
["libsodium-wrappers", "npm:0.7.11"],\
|
||||
["moment", "npm:2.29.4"],\
|
||||
["mongoose", "npm:7.4.2"],\
|
||||
["ms", "npm:2.1.3"],\
|
||||
@ -220,95 +220,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/darwin-arm64", [\
|
||||
["npm:4.1.5", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-darwin-arm64-npm-4.1.5-f2e350d660/node_modules/@ffmpeg-installer/darwin-arm64/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/darwin-arm64", "npm:4.1.5"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/darwin-x64", [\
|
||||
["npm:4.1.0", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-darwin-x64-npm-4.1.0-23d0bb519e/node_modules/@ffmpeg-installer/darwin-x64/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/darwin-x64", "npm:4.1.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/ffmpeg", [\
|
||||
["npm:1.1.0", {\
|
||||
"packageLocation": "./.yarn/cache/@ffmpeg-installer-ffmpeg-npm-1.1.0-76dedbb189-9725b2ae23.zip/node_modules/@ffmpeg-installer/ffmpeg/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/ffmpeg", "npm:1.1.0"],\
|
||||
["@ffmpeg-installer/darwin-arm64", "npm:4.1.5"],\
|
||||
["@ffmpeg-installer/darwin-x64", "npm:4.1.0"],\
|
||||
["@ffmpeg-installer/linux-arm", "npm:4.1.3"],\
|
||||
["@ffmpeg-installer/linux-arm64", "npm:4.1.4"],\
|
||||
["@ffmpeg-installer/linux-ia32", "npm:4.1.0"],\
|
||||
["@ffmpeg-installer/linux-x64", "npm:4.1.0"],\
|
||||
["@ffmpeg-installer/win32-ia32", "npm:4.1.0"],\
|
||||
["@ffmpeg-installer/win32-x64", "npm:4.1.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/linux-arm", [\
|
||||
["npm:4.1.3", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-linux-arm-npm-4.1.3-c657dff0d0/node_modules/@ffmpeg-installer/linux-arm/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/linux-arm", "npm:4.1.3"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/linux-arm64", [\
|
||||
["npm:4.1.4", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-linux-arm64-npm-4.1.4-44529c4564/node_modules/@ffmpeg-installer/linux-arm64/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/linux-arm64", "npm:4.1.4"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/linux-ia32", [\
|
||||
["npm:4.1.0", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-linux-ia32-npm-4.1.0-eb24e0ee97/node_modules/@ffmpeg-installer/linux-ia32/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/linux-ia32", "npm:4.1.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/linux-x64", [\
|
||||
["npm:4.1.0", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-linux-x64-npm-4.1.0-c20a613b71/node_modules/@ffmpeg-installer/linux-x64/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/linux-x64", "npm:4.1.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/win32-ia32", [\
|
||||
["npm:4.1.0", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-win32-ia32-npm-4.1.0-ba198eee7f/node_modules/@ffmpeg-installer/win32-ia32/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/win32-ia32", "npm:4.1.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@ffmpeg-installer/win32-x64", [\
|
||||
["npm:4.1.0", {\
|
||||
"packageLocation": "./.yarn/unplugged/@ffmpeg-installer-win32-x64-npm-4.1.0-4162651327/node_modules/@ffmpeg-installer/win32-x64/",\
|
||||
"packageDependencies": [\
|
||||
["@ffmpeg-installer/win32-x64", "npm:4.1.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["@isaacs/cliui", [\
|
||||
["npm:8.0.2", {\
|
||||
"packageLocation": "./.yarn/cache/@isaacs-cliui-npm-8.0.2-f4364666d5-4a473b9b32.zip/node_modules/@isaacs/cliui/",\
|
||||
@ -1020,7 +931,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["daggerbot-ts", "workspace:."],\
|
||||
["@discord-player/extractor", "npm:4.4.1"],\
|
||||
["@discordjs/opus", "npm:0.9.0"],\
|
||||
["@ffmpeg-installer/ffmpeg", "npm:1.1.0"],\
|
||||
["@octokit/auth-token", "npm:4.0.0"],\
|
||||
["@octokit/rest", "npm:20.0.1"],\
|
||||
["@types/ms", "npm:0.7.31"],\
|
||||
@ -1029,6 +939,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["canvas", "npm:2.11.2"],\
|
||||
["discord-player", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.6.2"],\
|
||||
["discord.js", "npm:14.12.1"],\
|
||||
["libsodium-wrappers", "npm:0.7.11"],\
|
||||
["moment", "npm:2.29.4"],\
|
||||
["mongoose", "npm:7.4.2"],\
|
||||
["ms", "npm:2.1.3"],\
|
||||
|
@ -29,13 +29,13 @@
|
||||
"dependencies": {
|
||||
"@discord-player/extractor": "4.4.1",
|
||||
"@discordjs/opus": "0.9.0",
|
||||
"@ffmpeg-installer/ffmpeg": "1.1.0",
|
||||
"@octokit/auth-token": "4.0.0",
|
||||
"@octokit/rest": "20.0.1",
|
||||
"axios": "1.4.0",
|
||||
"canvas": "2.11.2",
|
||||
"discord-player": "6.6.2",
|
||||
"discord.js": "14.12.1",
|
||||
"libsodium-wrappers": "0.7.11",
|
||||
"moment": "2.29.4",
|
||||
"mongoose": "7.4.2",
|
||||
"ms": "2.1.3",
|
||||
|
@ -31,7 +31,7 @@ client.on('ready', async()=>{
|
||||
// Error handler
|
||||
function DZ(error:Error, type:string){// Yes, I may have shiternet but I don't need to wake up to like a hundred messages or so.
|
||||
if (['getaddrinfo ENOTFOUND discord.com', 'getaddrinfo EAI_AGAIN discord.com', '[Error: 30130000:error:0A000410:SSL', '[Error: F8200000:error:0A000410:SSL'].includes(error.message)) return;
|
||||
//console.error(error);
|
||||
console.error(error);
|
||||
(client.channels.resolve(client.config.mainServer.channels.errors) as Discord.TextChannel | null)?.send({embeds: [new client.embed().setColor('#560000').setTitle('Error caught!').setFooter({text: 'Error type: ' + type}).setDescription(`**Error:**\n\`\`\`${error.message}\`\`\`**Stack:**\n\`\`\`${`${error.stack}`.slice(0, 2500)}\`\`\``)]})
|
||||
}
|
||||
process.on('unhandledRejection', (error: Error)=>DZ(error, 'unhandledRejection'));
|
||||
|
93
yarn.lock
93
yarn.lock
@ -158,95 +158,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/darwin-arm64@npm:4.1.5":
|
||||
version: 4.1.5
|
||||
resolution: "@ffmpeg-installer/darwin-arm64@npm:4.1.5"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/darwin-x64@npm:4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "@ffmpeg-installer/darwin-x64@npm:4.1.0"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/ffmpeg@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@ffmpeg-installer/ffmpeg@npm:1.1.0"
|
||||
dependencies:
|
||||
"@ffmpeg-installer/darwin-arm64": 4.1.5
|
||||
"@ffmpeg-installer/darwin-x64": 4.1.0
|
||||
"@ffmpeg-installer/linux-arm": 4.1.3
|
||||
"@ffmpeg-installer/linux-arm64": 4.1.4
|
||||
"@ffmpeg-installer/linux-ia32": 4.1.0
|
||||
"@ffmpeg-installer/linux-x64": 4.1.0
|
||||
"@ffmpeg-installer/win32-ia32": 4.1.0
|
||||
"@ffmpeg-installer/win32-x64": 4.1.0
|
||||
dependenciesMeta:
|
||||
"@ffmpeg-installer/darwin-arm64":
|
||||
optional: true
|
||||
"@ffmpeg-installer/darwin-x64":
|
||||
optional: true
|
||||
"@ffmpeg-installer/linux-arm":
|
||||
optional: true
|
||||
"@ffmpeg-installer/linux-arm64":
|
||||
optional: true
|
||||
"@ffmpeg-installer/linux-ia32":
|
||||
optional: true
|
||||
"@ffmpeg-installer/linux-x64":
|
||||
optional: true
|
||||
"@ffmpeg-installer/win32-ia32":
|
||||
optional: true
|
||||
"@ffmpeg-installer/win32-x64":
|
||||
optional: true
|
||||
checksum: 9725b2ae23a705204ac3f2f21ae796c06150d7f1c757583b664523a305be91bd8276859c25717a0d55cc4d2d6afde6d25acb5515050dc0d2d69bcf77c7c59aa4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/linux-arm64@npm:4.1.4":
|
||||
version: 4.1.4
|
||||
resolution: "@ffmpeg-installer/linux-arm64@npm:4.1.4"
|
||||
conditions: os=linux & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/linux-arm@npm:4.1.3":
|
||||
version: 4.1.3
|
||||
resolution: "@ffmpeg-installer/linux-arm@npm:4.1.3"
|
||||
conditions: os=linux & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/linux-ia32@npm:4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "@ffmpeg-installer/linux-ia32@npm:4.1.0"
|
||||
conditions: os=linux & cpu=ia32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/linux-x64@npm:4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "@ffmpeg-installer/linux-x64@npm:4.1.0"
|
||||
conditions: os=linux & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/win32-ia32@npm:4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "@ffmpeg-installer/win32-ia32@npm:4.1.0"
|
||||
conditions: os=win32 & cpu=ia32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ffmpeg-installer/win32-x64@npm:4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "@ffmpeg-installer/win32-x64@npm:4.1.0"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@isaacs/cliui@npm:^8.0.2":
|
||||
version: 8.0.2
|
||||
resolution: "@isaacs/cliui@npm:8.0.2"
|
||||
@ -836,7 +747,6 @@ __metadata:
|
||||
dependencies:
|
||||
"@discord-player/extractor": 4.4.1
|
||||
"@discordjs/opus": 0.9.0
|
||||
"@ffmpeg-installer/ffmpeg": 1.1.0
|
||||
"@octokit/auth-token": 4.0.0
|
||||
"@octokit/rest": 20.0.1
|
||||
"@types/ms": 0.7.31
|
||||
@ -845,6 +755,7 @@ __metadata:
|
||||
canvas: 2.11.2
|
||||
discord-player: 6.6.2
|
||||
discord.js: 14.12.1
|
||||
libsodium-wrappers: 0.7.11
|
||||
moment: 2.29.4
|
||||
mongoose: 7.4.2
|
||||
ms: 2.1.3
|
||||
@ -1418,7 +1329,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"libsodium-wrappers@npm:^0.7.10":
|
||||
"libsodium-wrappers@npm:0.7.11, libsodium-wrappers@npm:^0.7.10":
|
||||
version: 0.7.11
|
||||
resolution: "libsodium-wrappers@npm:0.7.11"
|
||||
dependencies:
|
||||
|
Loading…
Reference in New Issue
Block a user