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

Compare commits

...

4 Commits

Author SHA1 Message Date
dependabot[bot]
fc2e3163b8
Bump typescript from 5.2.2 to 5.3.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.2.2 to 5.3.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.2.2...v5.3.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 04:31:53 +00:00
AnxietyisReal
d9a5c8e4c6 Update repository URL in package.json 2023-12-18 15:30:26 +11:00
AnxietyisReal
84f48e9123 Fix incorrect field name 2023-12-16 17:20:21 +11:00
Toast
f2dcf9233d Push uncommitted changes to repository 2023-12-12 22:00:12 +11:00
7 changed files with 21 additions and 22 deletions

10
.pnp.cjs generated
View File

@ -43,7 +43,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["node-cron", "npm:3.0.2"],\ ["node-cron", "npm:3.0.2"],\
["redis", "npm:4.6.10"],\ ["redis", "npm:4.6.10"],\
["systeminformation", "npm:5.21.13"],\ ["systeminformation", "npm:5.21.13"],\
["typescript", "patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441"]\ ["typescript", "patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=f3b441"]\
],\ ],\
"linkType": "SOFT"\ "linkType": "SOFT"\
}]\ }]\
@ -931,7 +931,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["node-cron", "npm:3.0.2"],\ ["node-cron", "npm:3.0.2"],\
["redis", "npm:4.6.10"],\ ["redis", "npm:4.6.10"],\
["systeminformation", "npm:5.21.13"],\ ["systeminformation", "npm:5.21.13"],\
["typescript", "patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441"]\ ["typescript", "patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=f3b441"]\
],\ ],\
"linkType": "SOFT"\ "linkType": "SOFT"\
}]\ }]\
@ -2256,10 +2256,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\ }]\
]],\ ]],\
["typescript", [\ ["typescript", [\
["patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441", {\ ["patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=f3b441", {\
"packageLocation": "./.yarn/cache/typescript-patch-2e8dbfb8ab-0f4da2f15e.zip/node_modules/typescript/",\ "packageLocation": "./.yarn/cache/typescript-patch-1a7a4020a7-f61375590b.zip/node_modules/typescript/",\
"packageDependencies": [\ "packageDependencies": [\
["typescript", "patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441"]\ ["typescript", "patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=f3b441"]\
],\ ],\
"linkType": "HARD"\ "linkType": "HARD"\
}]\ }]\

View File

@ -3,10 +3,9 @@
"description": "TypeScript version of the original JavaScript-based bot for Official Daggerwin Discord.", "description": "TypeScript version of the original JavaScript-based bot for Official Daggerwin Discord.",
"main": "dist/index.js", "main": "dist/index.js",
"type": "module", "type": "module",
"homepage": "https://github.com/AnxietyisReal/Daggerbot-TS",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/AnxietyisReal/Daggerbot-TS.git" "url": "git+https://github.com/AnxietyisReal/Daggerbot-TS/tree/old"
}, },
"author": "Toast", "author": "Toast",
"license": "ISC", "license": "ISC",
@ -46,6 +45,6 @@
"@types/ms": "0.7.33", "@types/ms": "0.7.33",
"@types/node": "20.8.8", "@types/node": "20.8.8",
"@types/node-cron": "3.0.10", "@types/node-cron": "3.0.10",
"typescript": "5.2.2" "typescript": "5.3.3"
} }
} }

View File

@ -55,7 +55,7 @@ export default {
.setAuthor({name: 'Spotify', iconURL: 'https://cdn.discordapp.com/emojis/510214342034325504.webp?quality=lossless'}) .setAuthor({name: 'Spotify', iconURL: 'https://cdn.discordapp.com/emojis/510214342034325504.webp?quality=lossless'})
.addFields( .addFields(
{name: 'Artist', value: spotifyStatus?.state, inline: true}, {name: 'Artist', value: spotifyStatus?.state, inline: true},
{name: 'Album', value: spotifyStatus?.details, inline: true}, {name: 'Title', value: spotifyStatus?.details, inline: true},
{name: 'Started', value: `<t:${Math.round(spotifyStatus?.timestamps.start as unknown as number/1000)}>\n<t:${Math.round(spotifyStatus?.timestamps.start as unknown as number/1000)}:R>`, inline: false} {name: 'Started', value: `<t:${Math.round(spotifyStatus?.timestamps.start as unknown as number/1000)}>\n<t:${Math.round(spotifyStatus?.timestamps.start as unknown as number/1000)}:R>`, inline: false}
) )
embedArray.push(spotifyEmbed) embedArray.push(spotifyEmbed)

View File

@ -1,6 +1,6 @@
{ {
"configName": "Daggerbot", "configName": "Daggerbot",
"embedColor": "#0052cf", "embedColor": "#FFFFFF",
"embedColorBackup": "#0052cf", "embedColorBackup": "#0052cf",
"embedColorGreen": "#57f287", "embedColorGreen": "#57f287",
"embedColorOrange": "#cc5210", "embedColorOrange": "#cc5210",
@ -34,7 +34,7 @@
}, },
"botPresence": { "botPresence": {
"activities": [ "activities": [
{"name": "Today is November!", "url": "https://www.youtube.com/watch?v=y242XIPPykg", "type": 1} {"name": "Today is December!", "url": "https://www.youtube.com/watch?v=uimgSQE1Vnc", "type": 1}
], ],
"status": "online" "status": "online"
}, },

View File

@ -18,6 +18,6 @@ export default class HookMgr {
} }
static async edit(client:TClient, channel:ChannelList, webhookId:Discord.Snowflake, messageId:Discord.Snowflake, message:string|Discord.MessagePayload|Discord.WebhookMessageEditOptions) { static async edit(client:TClient, channel:ChannelList, webhookId:Discord.Snowflake, messageId:Discord.Snowflake, message:string|Discord.MessagePayload|Discord.WebhookMessageEditOptions) {
const hook = await this.fetch(client, channel, webhookId); const hook = await this.fetch(client, channel, webhookId);
return hook.editMessage(messageId, message).catch(err=>(client.channels.resolve(config.mainServer.channels.errors) as Discord.TextChannel).send(`Failed to edit a webhook message in <#${channel}>:\n\`\`\`\n${err.message}\n\`\`\``)); return hook.editMessage(messageId, message).catch(err=>(client.channels.resolve(config.mainServer.channels.errors) as Discord.TextChannel).send(`Failed to edit a webhook message in #${channel}:\n\`\`\`\n${err.message}\n\`\`\``));
} }
} }

View File

@ -8,7 +8,7 @@ import FormatDOTY from '../helpers/FormatDOTY.js';
export default class Response { export default class Response {
private static readonly incomingArrays = { private static readonly incomingArrays = {
morning: ['good morning all', 'good morning everyone', 'good morning lads', 'morning all', 'morning everyone', 'morning lads', 'morning guys', 'good morning everybody', 'morning yall', 'morning y\'all', 'good morning my neighbors'], morning: ['good morning all', 'good morning everyone', 'good morning lads', 'morning all', 'morning everyone', 'morning lads', 'morning guys', 'good morning everybody', 'morning yall', 'morning y\'all', 'good morning my neighbors', 'good morning yall', 'good morning y\'all'],
afternoon: ['good afternoon', 'afternoon all', 'afternoon everyone'], afternoon: ['good afternoon', 'afternoon all', 'afternoon everyone'],
evening: ['good evening', 'evening all', 'evening everyone', 'evening lads'], evening: ['good evening', 'evening all', 'evening everyone', 'evening lads'],
night: ['night all', 'night everyone', 'night guys', 'goodnight', 'good night'] night: ['night all', 'night everyone', 'night guys', 'goodnight', 'good night']

View File

@ -700,7 +700,7 @@ __metadata:
node-cron: 3.0.2 node-cron: 3.0.2
redis: 4.6.10 redis: 4.6.10
systeminformation: 5.21.13 systeminformation: 5.21.13
typescript: 5.2.2 typescript: 5.3.3
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -1870,23 +1870,23 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"typescript@npm:5.2.2": "typescript@npm:5.3.3":
version: 5.2.2 version: 5.3.3
resolution: "typescript@npm:5.2.2" resolution: "typescript@npm:5.3.3"
bin: bin:
tsc: bin/tsc tsc: bin/tsc
tsserver: bin/tsserver tsserver: bin/tsserver
checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c checksum: 2007ccb6e51bbbf6fde0a78099efe04dc1c3dfbdff04ca3b6a8bc717991862b39fd6126c0c3ebf2d2d98ac5e960bcaa873826bb2bb241f14277034148f41f6a2
languageName: node languageName: node
linkType: hard linkType: hard
"typescript@patch:typescript@5.2.2#~builtin<compat/typescript>": "typescript@patch:typescript@5.3.3#~builtin<compat/typescript>":
version: 5.2.2 version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441" resolution: "typescript@patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=f3b441"
bin: bin:
tsc: bin/tsc tsc: bin/tsc
tsserver: bin/tsserver tsserver: bin/tsserver
checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca checksum: f61375590b3162599f0f0d5b8737877ac0a7bc52761dbb585d67e7b8753a3a4c42d9a554c4cc929f591ffcf3a2b0602f65ae3ce74714fd5652623a816862b610
languageName: node languageName: node
linkType: hard linkType: hard