Updated chatbots to use Monogo_Ids
This commit is contained in:
parent
5e1d977f39
commit
cc782ba3d5
@ -30,7 +30,11 @@
|
||||
},
|
||||
"commandUseLimits": {
|
||||
"StashRows": 15
|
||||
}
|
||||
},
|
||||
"ids": {
|
||||
"commando": "6723fd51c5924c57ce0ca01e",
|
||||
"spt": "6723fd51c5924c57ce0ca01f"
|
||||
}
|
||||
},
|
||||
"createNewProfileTypesBlacklist": []
|
||||
},
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ export class CommandoDialogueChatBot extends AbstractDialogueChatBot {
|
||||
|
||||
public getChatBot(): IUserDialogInfo {
|
||||
return {
|
||||
_id: "sptCommando",
|
||||
_id: "6723fd51c5924c57ce0ca01e",
|
||||
aid: 1234567,
|
||||
Info: {
|
||||
Level: 1,
|
||||
|
@ -32,7 +32,7 @@ export class SptDialogueChatBot implements IDialogueChatBot {
|
||||
|
||||
public getChatBot(): IUserDialogInfo {
|
||||
return {
|
||||
_id: "sptFriend",
|
||||
_id: "6723fd51c5924c57ce0ca01f",
|
||||
aid: 1234566,
|
||||
Info: {
|
||||
Level: 1,
|
||||
|
@ -92,6 +92,7 @@ export interface IChatbotFeatures {
|
||||
commandoEnabled: boolean;
|
||||
commandoFeatures: ICommandoFeatures;
|
||||
commandUseLimits: Record<string, number>;
|
||||
ids: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface ICommandoFeatures {
|
||||
|
Loading…
x
Reference in New Issue
Block a user