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

Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
d4145389d0
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-11 02:00:33 +00:00
5 changed files with 7 additions and 6 deletions

View File

@ -3,9 +3,10 @@
"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/tree/old" "url": "git+https://github.com/AnxietyisReal/Daggerbot-TS.git"
}, },
"author": "Toast", "author": "Toast",
"license": "ISC", "license": "ISC",

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: 'Title', value: spotifyStatus?.details, inline: true}, {name: 'Album', 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": "#FFFFFF", "embedColor": "#0052cf",
"embedColorBackup": "#0052cf", "embedColorBackup": "#0052cf",
"embedColorGreen": "#57f287", "embedColorGreen": "#57f287",
"embedColorOrange": "#cc5210", "embedColorOrange": "#cc5210",
@ -34,7 +34,7 @@
}, },
"botPresence": { "botPresence": {
"activities": [ "activities": [
{"name": "Today is December!", "url": "https://www.youtube.com/watch?v=uimgSQE1Vnc", "type": 1} {"name": "Today is November!", "url": "https://www.youtube.com/watch?v=y242XIPPykg", "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', 'good morning yall', 'good morning y\'all'], 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'],
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']