Skip to content

HiImZsofi/mav-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MÁV-bot

What exactly is this bot doing?

MÁV bot is a fully backend application, built with NodeJS and Python. The application extracts data with various API calls, and pushes it into a MySQL database. After 24 hours it executes an SQL query, sums up the data and creates a Twitter post.

What languages/resources does it use?

  • JavaScript: the base of our code is written in JavaScript. We use the NodeJS runtime environment, the database completely relies on this environment as you can see above.
  • Python: The Twitter bot is developed in Python, using Tweepy and MySQL connector imports. Authentication and status.update is done automatically in here.
  • elvira-api: The backbone of our application. This is a free REST Webservice API for MÁV-START, based on JavaScript and Perl. For further information, please see this link: https://bitbucket.org/oroce/elvira-api/wiki/Home
  • SQL: this is for the database, where we store the daily delays. It takes up usually around 2700-3000 lines of data.

Where does it run?

Currently the application is running in two different docker containers, one for the database and one for the python image. The containers are running on Amazon Web Services (Elastic Container Registry) servers.

Where to see the finished product:

Right now the bot is fully backend, it sends out one status update to Twitter every 24 hours, at 18:00 GMT+2. If you are interested, visit this link: https://twitter.com/Mennyitkestunk

Developers:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published