Skip to content

Console Server | @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.

Usage

Install the package

Terminal window
npm install @chatally/console

Create a standalone console server and start listening

import { ConsoleServer } from '@chatally/console'
new ConsoleServer(async (req, res) => {
res.end(`You said: '${req.content}'`)
}).listen()