Inspired From @Pokurt's GitGram
- Git Clone Repo :
- For Telethon Version :
git clone https://github.com/zYxDevs/GitAlertBot -b telethon
- For Pyrogram Version :
git clone https://github.com/zYxDevs/GitAlertBot -b pyrogram
- Make
local.env
File With the Values As Shown Below :
API_ID=12222
API_HASH="api_hash"
BOT_TOKEN="bot_token"
HOST="http://127.0.0.1"
PORT=8000
- Now Just Run
python3 git_alert_core.py
- Now Navigate To Url :
http://127.0.0.1:8080/ghook/<chat-id>
(replace with the chat where you want alerts to be sent) - Go to Your Repo And Set The Webhook Url & Make Sure To Set It To Json. The Bot Should Sent Alerts Now.
- Happy Gitting :)
- Choose Your Fav Version And Click On Deploy Button
- Fill In The Values
- Turn On Dyno
- Now Navigate To Url :
https://<heroku-app-name>.herokuapp.com/ghook/<chat-id>
(replace with the chat where you want alerts to be sent and to your heroku app name) - Go to Your Repo And Set The Webhook Url & Make Sure To Set It To Json. The Bot Should Sent Alerts Now.
- Happy Gitting :)