2023-12-24 20:54:27 +01:00
|
|
|
import { inject, injectAll, injectable } from "tsyringe";
|
2024-05-21 19:59:04 +02:00
|
|
|
import { AbstractDialogueChatBot } from "@spt/helpers/Dialogue/AbstractDialogueChatBot";
|
|
|
|
import { IChatCommand } from "@spt/helpers/Dialogue/Commando/IChatCommand";
|
|
|
|
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
|
|
|
import { MemberCategory } from "@spt/models/enums/MemberCategory";
|
|
|
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|
|
|
import { MailSendService } from "@spt/services/MailSendService";
|
2023-12-24 20:54:27 +01:00
|
|
|
|
|
|
|
@injectable()
|
2024-04-10 11:48:28 +02:00
|
|
|
export class CommandoDialogueChatBot extends AbstractDialogueChatBot
|
2023-12-24 20:54:27 +01:00
|
|
|
{
|
|
|
|
public constructor(
|
2024-05-28 16:04:20 +02:00
|
|
|
@inject("PrimaryLogger") logger: ILogger,
|
2024-04-10 11:48:28 +02:00
|
|
|
@inject("MailSendService") mailSendService: MailSendService,
|
|
|
|
@injectAll("CommandoCommand") chatCommands: IChatCommand[],
|
2023-12-24 20:54:27 +01:00
|
|
|
)
|
|
|
|
{
|
2024-04-10 11:48:28 +02:00
|
|
|
super(logger, mailSendService, chatCommands);
|
2023-12-24 20:54:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public getChatBot(): IUserDialogInfo
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
_id: "sptCommando",
|
2024-01-06 14:49:48 +01:00
|
|
|
aid: 1234567,
|
2024-01-06 14:40:00 +01:00
|
|
|
Info: { Level: 1, MemberCategory: MemberCategory.DEVELOPER, Nickname: "Commando", Side: "Usec" },
|
2023-12-24 20:54:27 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2024-04-10 11:48:28 +02:00
|
|
|
protected getUnrecognizedCommandMessage(): string
|
2023-12-24 20:54:27 +01:00
|
|
|
{
|
2024-05-08 05:57:08 +02:00
|
|
|
return "I'm sorry soldier, I don't recognize the command you are trying to use! Type \"help\" to see available commands.";
|
2023-12-24 20:54:27 +01:00
|
|
|
}
|
|
|
|
}
|