Skip to content

A telegram bot that help you translatings words between English and Spanish

License

Notifications You must be signed in to change notification settings

adrianabreu/wordReferenceBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

About

A telegram bot that help you translatings words between English and Spanish

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published