50c7a26a58
This is the first pass of ESLint on the codebase. ESLint formatting is less strict when it comes to line-length and line-breaks then dprint/biome, so if you see formatting that you don't like... fix it! It shouldn't require a configuration change. - This should merge clean into master (when the time comes). - This will not merge clean into `3.9.0-DEV`, but the conflicts aren't that bad.
35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
TypeScript
import { inject, injectAll, injectable } from "tsyringe";
|
|
import { AbstractDialogueChatBot } from "@spt-aki/helpers/Dialogue/AbstractDialogueChatBot";
|
|
import { IChatCommand } from "@spt-aki/helpers/Dialogue/Commando/IChatCommand";
|
|
import { IUserDialogInfo } from "@spt-aki/models/eft/profile/IAkiProfile";
|
|
import { MemberCategory } from "@spt-aki/models/enums/MemberCategory";
|
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
|
|
|
@injectable()
|
|
export class CommandoDialogueChatBot extends AbstractDialogueChatBot
|
|
{
|
|
public constructor(
|
|
@inject("WinstonLogger") logger: ILogger,
|
|
@inject("MailSendService") mailSendService: MailSendService,
|
|
@injectAll("CommandoCommand") chatCommands: IChatCommand[],
|
|
)
|
|
{
|
|
super(logger, mailSendService, chatCommands);
|
|
}
|
|
|
|
public getChatBot(): IUserDialogInfo
|
|
{
|
|
return {
|
|
_id: "sptCommando",
|
|
aid: 1234567,
|
|
Info: { Level: 1, MemberCategory: MemberCategory.DEVELOPER, Nickname: "Commando", Side: "Usec" },
|
|
};
|
|
}
|
|
|
|
protected getUnrecognizedCommandMessage(): string
|
|
{
|
|
return "I'm sorry soldier, I don't recognize the command you are trying to use! Type \"help\" to see available commands.";
|
|
}
|
|
}
|