This repository is where the self-hosted, private instance version of GitGram lives. It uses plain webhooks and PTB to receive repository activity and send it to your groups or to your PMs.
If you ever come here to kang our source code, no support will be given unless you requested to assist you to fix license issues. Otherwise, instant ban will be given to you without any further notice.
- Install all requirements with
pip3 install -r requirements.txt - We recommend to use environment variables to configure your instance. To use it, set
ENVtoTrueand then cofnigureAPP_URL,BOT_TOKEN,GITGRAM_SUPPORT,GIT_REPO_URL, andPROJECT_NAMEvariables.- If you prefer the old way, edit your
config.py, but DO NOT COMMIT!
- If you prefer the old way, edit your
- Run
python3 GitGram.py
If you want to deploy this app on Heroku, there's a one-click setup for that. Click below, fill up the form and hit Deploy App.
Bruh, want to be like the Pins team's instance or can't install heroku CLI?
- Fork this repository, as you would do with other repos.
- Sign in to Heroku and create a new app.
- Open your app's overview. Under Deploy tab, select Deployment method to
GitHub, connect your repo - Select
masterto enable auto-deploys. - Then on Settings tab, add
APP_URL,BOT_TOKEN,GITGRAM_SUPPORT,GIT_REPO_URL, andPROJECT_NAMEvariables. To use them, setENVtoTrue. - Just one restart away to run your instance. To setup, open your bot's PMs or add it to your group and use
/connectcommand.
- Login to Gitpod.
- Open this repo in Gitpod.
- After workspace build, dependencies will be installed.
- Configure your bot and then start the server.