cp config.yml.example config.yml
- Edit
config.yml
(see "Config File") bundle install
This is needed for the vaccines_step
when generating the graphs.
sudo apt-get update
sudo apt-get install libmagickcore-dev libmagickwand-dev
gem install rmagick
Check an example file here.
telegram:
token: telegram_token
chat_id: chat_id
token
is the token you get when you setup a new bot. See: "Bots: An introduction for developers".chat_id
whom is the bot going to message. See: "How to get a group chat id?"
Gets trending news from this URL.
- type: clarinete_news
Shows a summary with daily increments about COVID-19 cases.
- type: covid
country: argentina
Shows the dollar (blue and oficial) exchange rate in Argentina 💸
- type: dollar
Posts one random message
- type: random_message
messages:
- random message 1
- random message 2
- random message 3
Posts a gif that contains one tag from the ones you specify.
script:
- type: random_gif
tags:
- firs tag
- second tag
- third tag
giphy:
token: giphy_token
Fetches random quote from this URL
- type: squanchy
Posts a COVID-19 vaccine daily stats from Argentina.
- type: vaccines
text_summary_enabled: true
graph_period_days: 14
Posts current weather information (checkout weather_forecast
, is cooler).
script:
- type: weather
city: Buenos Aires
openweather:
token: openweather_token
script:
- type: weather_forecast
lat: -34.586217
lon: -58.477769
openweather:
token: openweather_token
weather_forecast
will show a daily forecast given an specific location.
- Make sure you have added your bot into the channel (or group) you want.
ruby app.rb
I used cron jobs
make test