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

Fix MPModule's webhook

This commit is contained in:
toast-ts 2023-12-26 12:05:24 +11:00
parent 7bc2d08cee
commit e23ef7b19a
3 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"configName": "Daggerbot", "configName": "Daggerbot",
"embedColor": "#0052cf", "embedColor": "#ffffff",
"embedColorBackup": "#0052cf", "embedColorBackup": "#0052cf",
"embedColorGreen": "#57f287", "embedColorGreen": "#57f287",
"embedColorYellow": "#ffea00", "embedColorYellow": "#ffea00",
@ -14,7 +14,7 @@
], ],
"botSwitches": { "botSwitches": {
"dailyMsgsBackup": true, "dailyMsgsBackup": true,
"registerCommands": true, "registerCommands": false,
"commands": true, "commands": true,
"logs": true, "logs": true,
"mpSys": true, "mpSys": true,
@ -78,7 +78,8 @@
"bankick_log": "1048341961901363352", "bankick_log": "1048341961901363352",
"punishment_log": "1102751034754998302", "punishment_log": "1102751034754998302",
"dcmod_chat": "742324777934520350", "dcmod_chat": "742324777934520350",
"mpmod_chat": "516344221452599306" "mpmod_chat": "516344221452599306",
"multifarm_chat": "1149238561934151690"
} }
} }
} }

3
src/interfaces.d.ts vendored
View File

@ -157,7 +157,8 @@ export interface Config {
bankick_log: string, bankick_log: string,
punishment_log: string, punishment_log: string,
dcmod_chat: string, dcmod_chat: string,
mpmod_chat: string mpmod_chat: string,
multifarm_chat: string
} }
} }
} }

View File

@ -124,7 +124,7 @@ async function multifarmWebhook(client:TClient, server:IServer, webhookId:string
{name: 'Fuel Usage', value: getMappedValue(txtMapping.fuelUsage, csg?.settings.fuelUsage, dataUnavailable), inline: true}, {name: 'Fuel Usage', value: getMappedValue(txtMapping.fuelUsage, csg?.settings.fuelUsage, dataUnavailable), inline: true},
{name: 'Dirt Interval', value: getMappedValue(txtMapping.dirtInterval, csg?.settings.dirtInterval, dataUnavailable), inline: true} {name: 'Dirt Interval', value: getMappedValue(txtMapping.dirtInterval, csg?.settings.dirtInterval, dataUnavailable), inline: true}
]; ];
return new HookMgr(client, 'thismeanswar', webhookId).edit(messageId, { return new HookMgr(client, 'multifarm_chat', webhookId).edit(messageId, {
content: refreshIntrvlTxt, embeds: [ content: refreshIntrvlTxt, embeds: [
new client.embed().setColor(client.config.embedColor).setTitle(`Savegame Settings - ${csg?.settings?.mapTitle}`).addFields(fields).setFooter({text: 'Last updated'}).setTimestamp() new client.embed().setColor(client.config.embedColor).setTitle(`Savegame Settings - ${csg?.settings?.mapTitle}`).addFields(fields).setFooter({text: 'Last updated'}).setTimestamp()
] ]