A reddit bot that detects when American state abbreviations are used in a comment and writes out the full state name.
Just run python states_bot.py
The bot is already looped within that file, so no need for a cronjob.
The configuration file is "settings.json" and should be copied from "settings.json.default". It should contain the reddit bot username (without /u/), password, the subreddits to check and comment in, an approperate useragent (a name under which the bot communicates with reddit - see default file for an example).
states_bot depends on the following external libraries:
- praw - Reddit library
Some parts of the code are copied from groompbot.
states_bot is free to use under the MIT License.