mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -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.",
|
"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",
|
||||||
|
@ -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)
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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\`\`\``));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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']
|
||||||
|
Loading…
Reference in New Issue
Block a user