This bot is intended to inform users about air polllution index anywhere they want. The user can share his geolocation or send the city he want to know the index of.
An air quality index (AQI) is used by government agencies to communicate to the public how polluted the air currently.
- 💚 Good (0-50). Air quality is considered satisfactory, and air pollution poses little or no risk.
- 💛 Moderate (51-100). Air quality is acceptable.
- 🧡 Unhealthy for Sensitive Groups (101-150). Members of sensitive groups may experience health effects. The general public is not likely to be affected.
- 💗 Unhealthy (151-200). Everyone may begin to experience health effects.
- 💜 Very Unhealthy (201-300). Health warnings of emergency conditions. The entire population is more likely to be affected.
- 🖤 Hazardous (300+). Health alert: everyone may experience more serious health effects.
If you want to receive updates about air pollution every morning you need to write /subscribe. If you want to stop receiving notification it will be enough to write /unsubscribe. Also you can see levels of AQI by writing /scale.
- Clone this repository
git clone https://github.com/zavad4/AirQualityBot.git
- In file
config.js
change variables like:
const BOT_TOKEN = <YOUR_BOT_TOKEN>;
const API_TOKEN = <YOUR_API_TOKEN>;
const API_URL = <YOUR_API_URL>;.
You can get API_TOKEN here.
Ask questions at telegram and post issues at github.
ISC © Elizavieta Zavodovska