Updated chatbots to use Monogo_Ids

This commit is contained in:
Dev 2024-10-31 22:07:31 +00:00
parent 5e1d977f39
commit cc782ba3d5
5 changed files with 12 additions and 5 deletions

View File

@ -30,7 +30,11 @@
},
"commandUseLimits": {
"StashRows": 15
}
},
"ids": {
"commando": "6723fd51c5924c57ce0ca01e",
"spt": "6723fd51c5924c57ce0ca01f"
}
},
"createNewProfileTypesBlacklist": []
},

View File

@ -35,12 +35,14 @@ export class DialogueController {
// if give command is disabled or commando commands are disabled
if (!coreConfigs.features?.chatbotFeatures?.commandoEnabled) {
const sptCommando = this.dialogueChatBots.find(
(c) => c.getChatBot()._id.toLocaleLowerCase() === "sptcommando",
(c) => c.getChatBot()._id.toLocaleLowerCase() === coreConfigs.features?.chatbotFeatures.ids.commando,
);
this.dialogueChatBots.splice(this.dialogueChatBots.indexOf(sptCommando), 1);
}
if (!coreConfigs.features?.chatbotFeatures?.sptFriendEnabled) {
const sptFriend = this.dialogueChatBots.find((c) => c.getChatBot()._id.toLocaleLowerCase() === "sptFriend");
const sptFriend = this.dialogueChatBots.find(
(c) => c.getChatBot()._id.toLocaleLowerCase() === coreConfigs.features?.chatbotFeatures.ids.spt,
);
this.dialogueChatBots.splice(this.dialogueChatBots.indexOf(sptFriend), 1);
}
}

View File

@ -18,7 +18,7 @@ export class CommandoDialogueChatBot extends AbstractDialogueChatBot {
public getChatBot(): IUserDialogInfo {
return {
_id: "sptCommando",
_id: "6723fd51c5924c57ce0ca01e",
aid: 1234567,
Info: {
Level: 1,

View File

@ -32,7 +32,7 @@ export class SptDialogueChatBot implements IDialogueChatBot {
public getChatBot(): IUserDialogInfo {
return {
_id: "sptFriend",
_id: "6723fd51c5924c57ce0ca01f",
aid: 1234566,
Info: {
Level: 1,

View File

@ -92,6 +92,7 @@ export interface IChatbotFeatures {
commandoEnabled: boolean;
commandoFeatures: ICommandoFeatures;
commandUseLimits: Record<string, number>;
ids: Record<string, string>;
}
export interface ICommandoFeatures {