{"id":16509497,"url":"https://github.com/jtemporal/gitfichasadminbot","last_synced_at":"2026-06-10T15:31:58.274Z","repository":{"id":78994823,"uuid":"395798117","full_name":"jtemporal/GitFichasAdminBot","owner":"jtemporal","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-14T12:53:58.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T06:14:29.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitfichas.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jtemporal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-13T21:13:13.000Z","updated_at":"2022-09-15T18:35:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"21762edd-fdf6-4f7b-a3af-182202ea9223","html_url":"https://github.com/jtemporal/GitFichasAdminBot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jtemporal/GitFichasAdminBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2FGitFichasAdminBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2FGitFichasAdminBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2FGitFichasAdminBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2FGitFichasAdminBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtemporal","download_url":"https://codeload.github.com/jtemporal/GitFichasAdminBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2FGitFichasAdminBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34159249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T15:50:48.223Z","updated_at":"2026-06-10T15:31:58.245Z","avatar_url":"https://github.com/jtemporal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitFichasAdminBot\n\nThis is the way.\n\n## Running\n\n```console\ngunicorn main:server\n```\n\n## Set up\n\nThis bot was structured to be deployed to Heroku below you'll find the instructions for setting up everything you'll need for running your bot. 😉\n\n### Development\n\nCreate an Python environment and install the dependencies:\n\n```console\npython3 -m venv .env\nsource .env/bin/activate\npip install -r requirements.txt\n```\n\nThen create your `.config` file by copying the example file and updating the values accordingly:\n\n```console\ncp .example.config .config\n```\n\nHere's a list of the variables in the `.config` file and what they mean:\n\n```text\nBOT_TOKEN         -\u003e The Telegram bot token that you get from bot father\nGITHUB_TOKEN      -\u003e The GitHub personal access Token\nTELEGRAM_USER_ID  -\u003e Your user ID on Telegram\nGITHUB_REPO       -\u003e The repo on GitHub\nHEROKU_URL        -\u003e The app URL from the \"Domains\" section on settings\n```\n\nHere's some help for getting all those tokens:\n\n1. [Go here to get an GitHub personal access token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token).\n1. [Use the BotFather to enroll your bot and get a Telegram bot token](https://core.telegram.org/bots#3-how-do-i-create-a-bot).\n1. While in development you'll won't need a Heroku URL so leave that as the provided value in the example file.\n\nThen to run your server:\n\n```console\ngunicorn main:server\n```\n\nAccess [localhost](http://localhost:8000) on your favorite browser, you'll see some worker timeouts in development but don't worry about that, that's because we are using webhooks for production and start a bot polling in development.\n\n### Production\n\nLogin to your Heroku account and [create a new app](https://dashboard.heroku.com/new-app), follow the steps on the \"Deploy\" tab to deploy it (install the Heroku CLI, login to Heroku via CLI, push your code to Heroku), then navigate to the \"Settings\" tab.\n\nFor safety you don't want to commit the `.config` file, so to deploy this to Heroku you'll need to create the environment variables on the Heroku app settings.\n\nUnder \"Config Vars\" section click \"Reveal Config Vars\" button, then you'll be able to add variables. You can use the `.config` file as example for what variables you'll need and you'll also need an `ENV` variable set to `prod`.\n\nWhile in the Settings tab, refer to the \"Domains\" section to grab the Heroku URL\n\nHere's a list of all the variables you must set on Heroku and the descriptions:\n\n```text\nBOT_TOKEN         -\u003e The Telegram bot token that you get from bot father\nGITHUB_TOKEN      -\u003e The GitHub personal access Token\nTELEGRAM_USER_ID  -\u003e Your user ID on Telegram\nGITHUB_REPO       -\u003e The repo on GitHub\nHEROKU_URL        -\u003e The app URL from the \"Domains\" section on settings\nENV               -\u003e Environment, set it to something like `prod` or `production`\n```\n\nNow after deploying you **NEED** to access the home page once on your browser. This habilitate the webserver to start replying.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Fgitfichasadminbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtemporal%2Fgitfichasadminbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Fgitfichasadminbot/lists"}