@vnbot/ezbot

1.1.5 • Public • Published

EZ BOT - MAKE BOT EASIER

Framework for personal bot

npm i --save @vnbot/ezbot
const { Bot } = require('@vnbot/ezbot');
const config = require('config');
const path = require('path');
const bot = new Bot({
	email: config.get('email'),
	password: config.get('password'),
	appStatePath: path.resolve(__dirname, '../appstate.json'),
});

bot.on('message', (payload, chat) => {
	const text = payload.body;
	chat.say(`Echo: ${text}`);
});

bot.start();

More examples

cd examples
node echo-bot

Package Sidebar

Install

npm i @vnbot/ezbot

Weekly Downloads

13

Version

1.1.5

License

ISC

Unpacked Size

66.1 kB

Total Files

59

Last publish

Collaborators

  • notekunn