mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
Compare commits
1 Commits
fc2e3163b8
...
d4145389d0
Author | SHA1 | Date | |
---|---|---|---|
|
d4145389d0 |
@ -3,9 +3,10 @@
|
||||
"description": "TypeScript version of the original JavaScript-based bot for Official Daggerwin Discord.",
|
||||
"main": "dist/index.js",
|
||||
"type": "module",
|
||||
"homepage": "https://github.com/AnxietyisReal/Daggerbot-TS",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/AnxietyisReal/Daggerbot-TS/tree/old"
|
||||
"url": "git+https://github.com/AnxietyisReal/Daggerbot-TS.git"
|
||||
},
|
||||
"author": "Toast",
|
||||
"license": "ISC",
|
||||
|
@ -55,7 +55,7 @@ export default {
|
||||
.setAuthor({name: 'Spotify', iconURL: 'https://cdn.discordapp.com/emojis/510214342034325504.webp?quality=lossless'})
|
||||
.addFields(
|
||||
{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}
|
||||
)
|
||||
embedArray.push(spotifyEmbed)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"configName": "Daggerbot",
|
||||
"embedColor": "#FFFFFF",
|
||||
"embedColor": "#0052cf",
|
||||
"embedColorBackup": "#0052cf",
|
||||
"embedColorGreen": "#57f287",
|
||||
"embedColorOrange": "#cc5210",
|
||||
@ -34,7 +34,7 @@
|
||||
},
|
||||
"botPresence": {
|
||||
"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"
|
||||
},
|
||||
|
@ -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) {
|
||||
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\`\`\``));
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import FormatDOTY from '../helpers/FormatDOTY.js';
|
||||
|
||||
export default class Response {
|
||||
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'],
|
||||
evening: ['good evening', 'evening all', 'evening everyone', 'evening lads'],
|
||||
night: ['night all', 'night everyone', 'night guys', 'goodnight', 'good night']
|
||||
|
Loading…
Reference in New Issue
Block a user