0.1.1 ā€¢ Published 5 years ago

unobot v0.1.1

Weekly downloads
-
License
GPL
Repository
github
Last release
5 years ago

unobot

šŸ¤– One bot to rule them all

Install

npm install unobot

Usage

const unobot = require('unobot');

var bot = new unobot();

var telegramToken = "AAABBBCCC";
var telegramPrefix = "/";
var discordToken = "AAABBBCCC";
var discordPrefix = "/";

bot.initialize(telegramToken, telegramPrefix,discordToken, discordPrefix);
bot.on('message', async update => {
    bot.sendMessage(update, 'This is your message: ' + update.msg);
});