Based on tgtg-python project.
This project use Pipenv as a virtual environement. You can install Pipenv by following this link
Once Pipenv is installed, create a virtual env with Python 3 with this command
pipenv --three
To install third package, run this command
pipenv install
Run once the project to create the database
pipenv run python main.py
In database, set your users email address, notification method and credentials
Notification can be sended on Slack, Telegram or Discord
required completed fields example:
email
: [email protected]send_notif_on
: slackslack_token
: xoxb-124672357-12794653824453-bfD?HGJnbgjgnslack_user_id
: 1A2B3C4DE5F6
required completed fields example:
email
: [email protected]send_notif_on
: telegramtelegram_token
: 123456:fghMO522fdsfgbn24GN2SlRv7Ftelegram_chan_id
: 123456
required completed fields example:
email
: [email protected]send_notif_on
: discorddiscord_webhook_url
: https://discord.com/api/webhooks/...
You can set a sentry sdk url in .env
beside main.py
file.
SENTRY_SDK_URL=...
SENTRY_SDK_ENVIRONMENT=...
To run the notifier
pipenv run python main.py
or by cron
*/5 7-22 * * * cd your/path && pipenv run python main.py