1.1.5 • Published 3 years ago

@vnbot/ezbot v1.1.5

Weekly downloads
217
License
ISC
Repository
-
Last release
3 years ago

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