0.0.8 • Published 1 year ago
@chatally/console v0.0.8
@chatally/console
ChatAlly Console Server that reads input from the console, dispatches it to a chat application and outputs responses on the console.
You can configure the displayName, prompt, greeting, goodBye and the stopToken simply by setting these properties. There are also some colors you can configure: nameColor, promptColor and responseColor.
This package is meant to be used within a ChatAlly chatbot application.
Usage
Install the package
npm install @chatally/consoleCreate a console server and start listening
import { ConsoleServer } from '@chatally/console'
new ConsoleServer(async (req, res) => {
res.end(`You said: '${req.text}'`)
}).listen()Documentation
Find the full documentation at https://chatally.org/reference/servers/console.