Skip to main content
The Deno 2 Release Candidate is here
Learn more
class AbstractDialogueChatBot
implements IDialogueChatBot
Re-export
Abstract
import { AbstractDialogueChatBot } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Constructors

new
AbstractDialogueChatBot(
logger: ILogger,
mailSendService: MailSendService,
chatCommands: IChatCommand[] | ICommandoCommand[],
)

Properties

protected
chatCommands: IChatCommand[] | ICommandoCommand[]
protected
logger: ILogger
protected
mailSendService: MailSendService

Methods

protected
abstract
getUnrecognizedCommandMessage(): string
handleMessage(sessionId: string, request: ISendMessageRequest): string
deprecated
registerCommandoCommand(chatCommand: IChatCommand | ICommandoCommand): void