Skip to main content
The Deno 2 Release Candidate is here
Learn more
class ProfileSptCommand
implements ISptCommand
import { ProfileSptCommand } from "https://deno.land/x/sptaki@1.2.0/helpers/Dialogue/mod.ts";

Constructors

new
ProfileSptCommand(
logger: ILogger,
itemHelper: ItemHelper,
hashUtil: HashUtil,
jsonUtil: JsonUtil,
presetHelper: PresetHelper,
mailSendService: MailSendService,
localeService: LocaleService,
databaseServer: DatabaseServer,
profileHelper: ProfileHelper,
)

Properties

protected
databaseServer: DatabaseServer
protected
hashUtil: HashUtil
protected
itemHelper: ItemHelper
protected
jsonUtil: JsonUtil
protected
localeService: LocaleService
protected
logger: ILogger
protected
mailSendService: MailSendService
protected
presetHelper: PresetHelper
protected
profileHelper: ProfileHelper
protected
savedCommand: SavedCommand

Methods

protected
handleLevelCommand(level: number): IProfileChangeEvent
protected
handleSkillCommand(skill: string, level: number): IProfileChangeEvent
getCommand(): string
getCommandHelp(): string
performAction(
commandHandler: IUserDialogInfo,
sessionId: string,
): string

Static Properties

private
commandRegex

Regex to account for all these cases: spt profile level 20 spt profile skill metabolism 10