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

Push uncommitted changes to repository

This commit is contained in:
toast-ts 2023-12-12 22:00:12 +11:00
parent 075156cfcc
commit 66178d5637
3 changed files with 4 additions and 4 deletions

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']