Updated README.md

This commit is contained in:
salvadorpla 2019-11-30 14:36:53 +01:00
pare b23400ecec
commit 6c5070d2b8
S'han modificat 1 arxius amb 5 adicions i 5 eliminacions

Veure arxiu

@ -1,10 +1,10 @@
# mailing # mailing
Mail your Mastodon server inactive users and track their feedback, written in Python. Mail your Mastodon server inactive users and track their feedback.
Any user can ask the bot for the weather of any country like this: @bot weather: New York This code written in Python get all more than a year inactive users from Mastodon's database and email them with the subject and message of your choice.
The bot will reply/toot with all the information given by OpenWeatherMap API. Emailed inactive users data are stored into new Postgresql database to track feedback and status.
To run this bot you need to get your API key at https://openweathermap.org/api Run mailing.py periodically to catch 'new' inactive users and uptade the elapsed days of the already emailed ones.
### Dependencies ### Dependencies
@ -16,7 +16,7 @@ To run this bot you need to get your API key at https://openweathermap.org/api
Within Python Virtual Environment: Within Python Virtual Environment:
1. Run 'db-setup.py' to create needed database and table and the rest of parameters. All inactive users collected data (see point 3) will be written there. 1. Run 'db-setup.py' to set database parameters and create needed database and table. All collected data of inactive users (see point 3) will be written there.
2. Run 'setup.py' to set your SMTP parameters and desired email subject. They will be saved to 'secrets/secrets.txt' for further use. 2. Run 'setup.py' to set your SMTP parameters and desired email subject. They will be saved to 'secrets/secrets.txt' for further use.