{"id":13410373,"url":"https://github.com/binary-coffee-dev/binarycoffee_bot","last_synced_at":"2025-03-14T15:32:33.151Z","repository":{"id":54571510,"uuid":"234645307","full_name":"binary-coffee-dev/binarycoffee_bot","owner":"binary-coffee-dev","description":"Bot that publishes the latest articles to the Telegram channel.","archived":false,"fork":false,"pushed_at":"2023-08-18T08:25:20.000Z","size":49,"stargazers_count":4,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-20T03:18:11.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binary-coffee-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-01-17T22:08:59.000Z","updated_at":"2024-07-30T22:51:46.258Z","dependencies_parsed_at":"2024-07-30T23:09:03.377Z","dependency_job_id":null,"html_url":"https://github.com/binary-coffee-dev/binarycoffee_bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-coffee-dev%2Fbinarycoffee_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-coffee-dev%2Fbinarycoffee_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-coffee-dev%2Fbinarycoffee_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-coffee-dev%2Fbinarycoffee_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binary-coffee-dev","download_url":"https://codeload.github.com/binary-coffee-dev/binarycoffee_bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221318189,"owners_count":16797132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-07-30T20:01:06.498Z","updated_at":"2024-10-26T01:30:54.740Z","avatar_url":"https://github.com/binary-coffee-dev.png","language":"Python","funding_links":[],"categories":["Bots"],"sub_categories":["Telegram"],"readme":"# Binary Coffee Bot\n\n**Telegram** bot that publishes the latest articles from our [blog](https://binary-coffee.dev) to our [Telegram channel](https://t.me/binarycoffeedev). If you have a blog with a json1 feed and want to send the posts automatically to a telegram channel you can use this bot.\n\n## Setup project\n\n### Environment variables\n\n* Telegram variables\n    * `TELEGRAM_CHANNEL`: your telegram channel **@channel**\n    * `TELEGRAM_TOKEN`: your telegram bot token, you can see [this post](https://binary-coffee.dev/post/como-hacer-un-bot-de-telegram-desde-cero-con-python)\n* Twitter variables\n    * `TWITTER_CONSUMER_KEY`: your twitter consumer key\n    * `TWITTER_CONSUMER_SECRET`: your twitter consumer secret\n    * `TWITTER_ACCESS_TOKEN`: your twitter access token\n    * `TWITTER_ACCESS_TOKEN_SECRET`: your twitter access token secret\n* Application variables\n    * `RSS_FEED`: URL of the JSON feed of your blog. Example `https://api.binary-coffee.dev/posts/feed/json1`\n    * `REFRESH_TIME`: interval of time to check for new items. Default `60`\n    * `DATA_ADAPTER`: type of adapter used to save the data. Example `MemoryAdapter`|`JsonAdapter`|`MongodbAdapter`\n    * `DATA_PATH`: (**JsonAdapter**) in case of use JsonAdapter, you can decide where to save the file. Default `./data`.\n    * `DATABASE_HOST`: (**MongodbAdapter**) host for your mongodb database. Default `localhost`\n    * `DATABASE_PORT`: (**MongodbAdapter**) port for your mongodb database. Default `27017`\n    * `DATABASE_NAME`: (**MongodbAdapter**) database name. default `bc_db`\n\n### Steps to start the bot\n\n1. Clone the repo: `git clone https://github.com/dcs-community/binarycoffee_bot.git`\n2. Create environment: `virtualenv -p python3 env`\n3. Activate environment: `source env/bin/activate`\n4. Set environment variables\n5. Install packages: `pip install -r requirements.txt`\n6. Finally, run `python bot.py`\n\n### Deploy in Heroku\n\nSee [this post](https://binary-coffee.dev/post/aprende-a-desplegar-un-bot-de-telegram-en-heroku) for help.\n\n### Setup with docker\n\n1. Clone the repo: `git clone https://github.com/dcs-community/binarycoffee_bot.git`\n2. Set environment variables\n3. Start docker-compose: `docker-compose up -d`\n\n## Contribution\n\nAny contribution is welcome.\n\n## License\n\nCheck our [LICENCE.md](https://github.com/dcs-community/binarycoffee_bot/blob/master/LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-coffee-dev%2Fbinarycoffee_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinary-coffee-dev%2Fbinarycoffee_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-coffee-dev%2Fbinarycoffee_bot/lists"}