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

Constructors

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

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
savedCommand: SavedCommand

Methods

getCommand(): string
getCommandHelp(): string
performAction(
commandHandler: IUserDialogInfo,
sessionId: string,
): string

Static Properties

private
commandRegex

Regex to account for all these cases: spt trader prapor rep 100 spt trader mechanic spend 1000000