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

Compare commits

..

2 Commits

Author SHA1 Message Date
toast-ts
ae32205c9a Update types 2024-01-26 08:10:05 +11:00
toast-ts
4594c2136a The forgotten if statement 2024-01-26 08:09:14 +11:00
4 changed files with 28 additions and 31 deletions

30
.pnp.cjs generated
View File

@ -30,9 +30,9 @@ const RAW_RUNTIME_STATE =
["@octokit/rest", "npm:20.0.2"],\ ["@octokit/rest", "npm:20.0.2"],\
["@toast/tokenservice-client", "npm:1.0.10::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.10%2Ftokenservice-client-1.0.10.tgz"],\ ["@toast/tokenservice-client", "npm:1.0.10::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.10%2Ftokenservice-client-1.0.10.tgz"],\
["@types/ms", "npm:0.7.34"],\ ["@types/ms", "npm:0.7.34"],\
["@types/node", "npm:20.11.5"],\ ["@types/node", "npm:20.11.6"],\
["@types/node-cron", "npm:3.0.11"],\ ["@types/node-cron", "npm:3.0.11"],\
["@types/pg", "npm:8.10.9"],\ ["@types/pg", "npm:8.11.0"],\
["@types/sequelize", "npm:4.28.20"],\ ["@types/sequelize", "npm:4.28.20"],\
["ansi-colors", "npm:4.1.3"],\ ["ansi-colors", "npm:4.1.3"],\
["canvas", "npm:2.11.2"],\ ["canvas", "npm:2.11.2"],\
@ -603,7 +603,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/",\ "packageLocation": "./.yarn/cache/@types-continuation-local-storage-npm-3.2.7-763e4dc12b-1f272b53bc.zip/node_modules/@types/continuation-local-storage/",\
"packageDependencies": [\ "packageDependencies": [\
["@types/continuation-local-storage", "npm:3.2.7"],\ ["@types/continuation-local-storage", "npm:3.2.7"],\
["@types/node", "npm:20.11.5"]\ ["@types/node", "npm:20.11.6"]\
],\ ],\
"linkType": "HARD"\ "linkType": "HARD"\
}]\ }]\
@ -637,10 +637,10 @@ const RAW_RUNTIME_STATE =
}]\ }]\
]],\ ]],\
["@types/node", [\ ["@types/node", [\
["npm:20.11.5", {\ ["npm:20.11.6", {\
"packageLocation": "./.yarn/cache/@types-node-npm-20.11.5-b807d46a1a-9f31c47104.zip/node_modules/@types/node/",\ "packageLocation": "./.yarn/cache/@types-node-npm-20.11.6-e5e1974d32-375dfc75f0.zip/node_modules/@types/node/",\
"packageDependencies": [\ "packageDependencies": [\
["@types/node", "npm:20.11.5"],\ ["@types/node", "npm:20.11.6"],\
["undici-types", "npm:5.26.5"]\ ["undici-types", "npm:5.26.5"]\
],\ ],\
"linkType": "HARD"\ "linkType": "HARD"\
@ -656,11 +656,11 @@ const RAW_RUNTIME_STATE =
}]\ }]\
]],\ ]],\
["@types/pg", [\ ["@types/pg", [\
["npm:8.10.9", {\ ["npm:8.11.0", {\
"packageLocation": "./.yarn/cache/@types-pg-npm-8.10.9-ee8620c8e7-787be5431a.zip/node_modules/@types/pg/",\ "packageLocation": "./.yarn/cache/@types-pg-npm-8.11.0-bf104da0ba-91a7ccc5dc.zip/node_modules/@types/pg/",\
"packageDependencies": [\ "packageDependencies": [\
["@types/pg", "npm:8.10.9"],\ ["@types/pg", "npm:8.11.0"],\
["@types/node", "npm:20.11.5"],\ ["@types/node", "npm:20.11.6"],\
["pg-protocol", "npm:1.6.0"],\ ["pg-protocol", "npm:1.6.0"],\
["pg-types", "npm:4.0.1"]\ ["pg-types", "npm:4.0.1"]\
],\ ],\
@ -694,7 +694,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-ws-npm-8.5.9-91d1b2ab07-7cf66383b8.zip/node_modules/@types/ws/",\ "packageLocation": "./.yarn/cache/@types-ws-npm-8.5.9-91d1b2ab07-7cf66383b8.zip/node_modules/@types/ws/",\
"packageDependencies": [\ "packageDependencies": [\
["@types/ws", "npm:8.5.9"],\ ["@types/ws", "npm:8.5.9"],\
["@types/node", "npm:20.11.5"]\ ["@types/node", "npm:20.11.6"]\
],\ ],\
"linkType": "HARD"\ "linkType": "HARD"\
}]\ }]\
@ -995,9 +995,9 @@ const RAW_RUNTIME_STATE =
["@octokit/rest", "npm:20.0.2"],\ ["@octokit/rest", "npm:20.0.2"],\
["@toast/tokenservice-client", "npm:1.0.10::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.10%2Ftokenservice-client-1.0.10.tgz"],\ ["@toast/tokenservice-client", "npm:1.0.10::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.10%2Ftokenservice-client-1.0.10.tgz"],\
["@types/ms", "npm:0.7.34"],\ ["@types/ms", "npm:0.7.34"],\
["@types/node", "npm:20.11.5"],\ ["@types/node", "npm:20.11.6"],\
["@types/node-cron", "npm:3.0.11"],\ ["@types/node-cron", "npm:3.0.11"],\
["@types/pg", "npm:8.10.9"],\ ["@types/pg", "npm:8.11.0"],\
["@types/sequelize", "npm:4.28.20"],\ ["@types/sequelize", "npm:4.28.20"],\
["ansi-colors", "npm:4.1.3"],\ ["ansi-colors", "npm:4.1.3"],\
["canvas", "npm:2.11.2"],\ ["canvas", "npm:2.11.2"],\
@ -2270,7 +2270,7 @@ const RAW_RUNTIME_STATE =
["@types/mariadb", null],\ ["@types/mariadb", null],\
["@types/mysql2", null],\ ["@types/mysql2", null],\
["@types/oracledb", null],\ ["@types/oracledb", null],\
["@types/pg", "npm:8.10.9"],\ ["@types/pg", "npm:8.11.0"],\
["@types/pg-hstore", null],\ ["@types/pg-hstore", null],\
["@types/snowflake-sdk", null],\ ["@types/snowflake-sdk", null],\
["@types/sqlite3", null],\ ["@types/sqlite3", null],\
@ -2725,7 +2725,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/wkx-npm-0.5.0-fca5152cd8-b8975e33f9.zip/node_modules/wkx/",\ "packageLocation": "./.yarn/cache/wkx-npm-0.5.0-fca5152cd8-b8975e33f9.zip/node_modules/wkx/",\
"packageDependencies": [\ "packageDependencies": [\
["wkx", "npm:0.5.0"],\ ["wkx", "npm:0.5.0"],\
["@types/node", "npm:20.11.5"]\ ["@types/node", "npm:20.11.6"]\
],\ ],\
"linkType": "HARD"\ "linkType": "HARD"\
}]\ }]\

View File

@ -52,9 +52,9 @@
}, },
"devDependencies": { "devDependencies": {
"@types/ms": "0.7.34", "@types/ms": "0.7.34",
"@types/node": "20.11.5", "@types/node": "20.11.6",
"@types/node-cron": "3.0.11", "@types/node-cron": "3.0.11",
"@types/pg": "8.10.9", "@types/pg": "8.11.0",
"@types/sequelize": "4.28.20", "@types/sequelize": "4.28.20",
"typescript": "5.3.3" "typescript": "5.3.3"
} }

View File

@ -67,7 +67,6 @@ export default class MessageCreate {
password: ['whats the password', 'what\'s the password', 'password pls'], password: ['whats the password', 'what\'s the password', 'password pls'],
cantRead: ['i cant read', 'i can\'t read', 'cant read', 'can\'t read'], cantRead: ['i cant read', 'i can\'t read', 'cant read', 'can\'t read'],
theyBrokeIt: ['break', 'broke', 'broken'], theyBrokeIt: ['break', 'broke', 'broken'],
deadChat: ['dead chat', 'chat is dead', 'dead server', 'inactive chat', 'inactive channel'],
mpsrv: ['is anyone online', 'is the server up', 'is anyone going on'] mpsrv: ['is anyone online', 'is the server up', 'is anyone going on']
} }
const outgoingArrays = { const outgoingArrays = {
@ -84,8 +83,7 @@ export default class MessageCreate {
let picStorage = { let picStorage = {
cantRead: 'https://tenor.com/view/aristocats-george-pen-cap-meticulous-gif-5330931', cantRead: 'https://tenor.com/view/aristocats-george-pen-cap-meticulous-gif-5330931',
amAlive: 'https://tenor.com/view/i-still-feel-alive-living-existing-active-singing-gif-14630579', amAlive: 'https://tenor.com/view/i-still-feel-alive-living-existing-active-singing-gif-14630579'
deadChat: 'https://cdn.discordapp.com/attachments/925589318276382720/1011333656167579849/F57G5ZS.png',
}; };
let ModsGoGetThisPerson = [// I find this variable amusing but also can't think of anything better so not changing it. let ModsGoGetThisPerson = [// I find this variable amusing but also can't think of anything better so not changing it.
{ {
@ -118,7 +116,6 @@ export default class MessageCreate {
if (incomingArrays.password.some(e=>message.content.toLowerCase().includes(e))) message.reply('Password and other details can be found in <#543494084363288637>'); if (incomingArrays.password.some(e=>message.content.toLowerCase().includes(e))) message.reply('Password and other details can be found in <#543494084363288637>');
if (incomingArrays.cantRead.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.cantRead); if (incomingArrays.cantRead.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.cantRead);
if (message.content.toLowerCase().includes('is daggerbot working')) message.reply(picStorage.amAlive); if (message.content.toLowerCase().includes('is daggerbot working')) message.reply(picStorage.amAlive);
if (incomingArrays.deadChat.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.deadChat);
if (message.channelId === '468835769092669461' && incomingArrays.mpsrv.some(e=>message.content.toLowerCase().includes(e))) message.reply('You can take a look at the embeds in <#543494084363288637> to see if anyone is on the server.'); if (message.channelId === '468835769092669461' && incomingArrays.mpsrv.some(e=>message.content.toLowerCase().includes(e))) message.reply('You can take a look at the embeds in <#543494084363288637> to see if anyone is on the server.');
for (const thisPerson of ModsGoGetThisPerson) { for (const thisPerson of ModsGoGetThisPerson) {

View File

@ -441,23 +441,23 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node@npm:*, @types/node@npm:20.11.5": "@types/node@npm:*, @types/node@npm:20.11.6":
version: 20.11.5 version: 20.11.6
resolution: "@types/node@npm:20.11.5" resolution: "@types/node@npm:20.11.6"
dependencies: dependencies:
undici-types: "npm:~5.26.4" undici-types: "npm:~5.26.4"
checksum: 9f31c471047d7b3e240ce7b77ff29b0d15e83be7e3feafb3d0b0d0931122b438b1eefa302a5a2e1e9849914ff3fd76aafbd8ccb372efb1331ba048da63bce6f8 checksum: 375dfc75f0aa8b7fb99382d84c317e5dab2969dcc3f54d8490b119151060923eae6483839552347bc78262bbcefb2951ee131e15372f4e80b755be2dda9afe80
languageName: node languageName: node
linkType: hard linkType: hard
"@types/pg@npm:8.10.9": "@types/pg@npm:8.11.0":
version: 8.10.9 version: 8.11.0
resolution: "@types/pg@npm:8.10.9" resolution: "@types/pg@npm:8.11.0"
dependencies: dependencies:
"@types/node": "npm:*" "@types/node": "npm:*"
pg-protocol: "npm:*" pg-protocol: "npm:*"
pg-types: "npm:^4.0.1" pg-types: "npm:^4.0.1"
checksum: 787be5431ae70abe9eadde3bcfec7d1fd227ab401b20f1be6fadc171556d3083802855eeacd6a889237994c8cd01b23f56f1d31ecb3e9a79f8bcfb16b3ee4f0f checksum: 91a7ccc5dc8e162d9d181f48f699eb4628632e75bd9db1c0ca774ec9b055b177875fb4b426279961061912f25fb3948c48c96e63ac9e85efcf7ce6f2567b6485
languageName: node languageName: node
linkType: hard linkType: hard
@ -748,9 +748,9 @@ __metadata:
"@octokit/rest": "npm:20.0.2" "@octokit/rest": "npm:20.0.2"
"@toast/tokenservice-client": "npm:1.0.10" "@toast/tokenservice-client": "npm:1.0.10"
"@types/ms": "npm:0.7.34" "@types/ms": "npm:0.7.34"
"@types/node": "npm:20.11.5" "@types/node": "npm:20.11.6"
"@types/node-cron": "npm:3.0.11" "@types/node-cron": "npm:3.0.11"
"@types/pg": "npm:8.10.9" "@types/pg": "npm:8.11.0"
"@types/sequelize": "npm:4.28.20" "@types/sequelize": "npm:4.28.20"
ansi-colors: "npm:4.1.3" ansi-colors: "npm:4.1.3"
canvas: "npm:2.11.2" canvas: "npm:2.11.2"