telegram bot to Send a notification when a new discount occurs in Nintendo store
alimiracle f92e3d1561 move to codeberg | 5 bulan lalu | |
---|---|---|
Gemfile | 4 tahun lalu | |
README.md | 5 bulan lalu | |
name | 4 tahun lalu | |
switch_discounts.rb | 4 tahun lalu |
this project has been archived and migrated to codeberg. To access the project on codeberg,
a telegram bot to Send a notification when a new discount occurs in Nintendo store
I wrote this code for personal use.
But I decided to publish it . you might benefit from it.
I love video games, especially Nintendo Switch games.
When I have time, I open the store and browse the new discounts.
At last I decided to write this bot to Watch the store instead of me.
The bot is written using Ruby
so it needs Ruby
to install the bot
Open your os terminal then clone the bot code useing git
git clone https://notabug.org/alimiracle/switch_discounts
then type
cd switch_discounts
bundle install
to use this bot
You need bot token and chat_id
and you must create bot useing BotFather
the bot take the bot token and chat_id as Environment variables
for example in my gnu linux system
export BOT_TOKEN="your BOT_TOKEN"
export CHAT_ID="your CHAT_ID"
to run this bot Open your os terminal then type
ruby switch_discounts.rb
If you want to run the bot in the background
use nohup
So you need help.
People can help you, but first help them help you, and don't waste their time.
Provide a complete description of the issue.
If it works on A but not on B and others have to ask you: "so what is different between A and B" you are wasting everyone's time.
"hello", "please" and "thanks" are not swear words.
gpl v3+