Skip to content
A telegram bot that help you translatings words between English and Spanish
JavaScript HTML CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
public
views
.gitignore
LICENSE
README.md
app.js
botv2.png
botworks.png
package.json

README.md

wordReferenceBot

Table of Contents

  1. Description
  2. Major update!
  3. Commands
  4. Wrefbot web
  5. Screenshots
  6. Documentation

Description

This is a telegram bot made on Node.js for helping with translations.

I have trying to learn English on my own. But I need to translate a lot of new words and with this bot, it's extremely easy :)

Since wordreference's api is no longer available, I'm doing web scraping using request + cheerio.

Major update!

  1. RegExp improved for groups.
  2. Words are now stored in a MongoDB.
  3. New web-endpoint with ejs (you can even query the database from there!).
  4. Now using socket.io for knowing in real time the number of stored translations.
  5. Highcarts for database usage!
  6. Logging with winston.
  7. Moved to es6 syntax.

Commands

Long usage mode:
/eng list,of,words: Translate TO English, the words separated by commas
/spa list,of,words: Translates TO Spanish, the words separated by commas
/help: Display help message

Short usage mode:
/spa: Activate mode eng -> spa
/eng: Activa mode spa-> eng
word,to,search for: translate words using the active mode
eng -> spa is active by default

Wrefbot web

Screenshots

bot chat bot v2

Environment variables needed

  • MONGODB_USER
  • MONGODB_PASSWORD
  • MONGODB_URL
  • MONGODB_DATABASE
  • HOST
  • PORT
  • TOKEN

Documentation

For more info of everything that has struggled me:

You can’t perform that action at this time.