Langur is a translation chat bot made with Microsoft Bot Framework with Node.js and a free Google translate Api. You can read more about it on my blog.
kik langurtranslator
Facebook page: fb.me/LangurTranslator
In the beginning, the bot asks you for your source and target language and then it translates whatever you type into it.
Install dependencies:
npm install
Insert your
appId
andappPassword
After installing the dependcies, create a bot on the Microsoft Bot framework. Get theappId
and theappPassword
. Replace these values here:
var keys = require('./keys.js'); //Remove it, used only to import appId and appPassword
// Create chat connector for communicating with the Bot Framework Service
var connector = new builder.ChatConnector({
appId: keys.appId, //Replace with App Id from your Microsoft bot
appPassword: keys.appPassword //Replace with App Password from your Microsoft bot
});
Or create a file named: keys.js
and export these values.
Run the app
node app.js
Install Microsoft Bot Emulator
Download and Install Microsoft Bot Framework Emulator to run on localhost.
Enter your appId and appPassword and click connect,
Afterwards, you can interact with the bot like so:
Langur - Language translation chat bot is released under GNU General Public License v3.0. Please refer to the LICENSE file for detailed information.
Copyright: Arshad Mehmood