Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AQI Bot

This is a Reddit bot that returns the Air Quality Index of any city given to it.

How to Use

To use the bot on Reddit, all you have to do is mention its name in your comment, and then put the name of the city whose AQI you want afterwards, in quotes. So to get the AQI for Beijing, you could write something like: Calling on /u/aqi-bot "New Delhi" The bot will then return the Air Quality Index, along with the date its accurate to, and its source.

Disclaimer

This bot is runs on PRAW, and gets its data from the World Air Quality Index project. It's only as good as its data, so the bot may return out of date information if the data isn't there yet, and so be sure to check out what date and time the info is accurate to, which will be included in aqi-bot's reply.

To use the World Air Quality Index project's API, you'll need to get a free API key from their website. To get a Reddit bot running using PRAW, you'll need your own Reddit account, and feed in its username, password, client-id and client-secret to PRAW, which I store in a praw.ini file not included in the public repository.

About

My Reddit bot that responds to comments in the form: /u/aqi-bot "<city>" , and responds with the Air Quality Index for the city, along with sources. There can also be text before or after the key phrase. Data sourced from WAQI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages