0.0.1 • Published 1 year ago

typescript-agi-ng v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Welcome to typescript-agi-ng 👋

This piece of code is taken from https://github.com/fabiotheo/typescript-agi , which itself has been taken from https://github.com/brandonlehmann/typescript-agi

Install

npm install typescript-agi-ng

Run tests

npm run test

Example Usage

import {
    AGIServer, 
    Channel
} from 'typescript-agi-ng';

const agiServer = new AGIServer();

agiServer.on('channel', async(channel: Channel) => {
    await channel.answer();
    await channel.sayNumber(12345);
    await channel.hangup();
});

agiServer.start();
0.0.1

1 year ago