Skip to content

Telegram bot that sends a message every time a Switch game goes on sale in the Nintendo Eshop.

Notifications You must be signed in to change notification settings

nilportugues/eshop-sales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eshop-sales

Telegram bot that sends a message every time a Switch game goes on sale in the Nintendo Eshop.

Every time run.rb is ran, it does this:

  • Pull all games(only from Europe) from the Nintendo API.
  • Get all prices, for all countries and for all games from the Nintendo API.
  • Save the lowest price for each game.
  • If a game is on sale and is the lowest price, send a telegram message.

This project is badly coded hacky copy-pasted spaghetti code.

I didn't really care about code style or DRY when coding this because I just wanted to complete it as fast as possible. As such, this is not an example of my coding skills :P

Dependencies

Uses plain ruby without rails. Uses postgresql to save game data. A cronjob is supplied to fire the script every hour. The other gems are for http requests and currency conversion.

About

Telegram bot that sends a message every time a Switch game goes on sale in the Nintendo Eshop.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages