{"id":13501617,"url":"https://github.com/GabrielRF/RastreioBot","last_synced_at":"2025-03-29T09:30:54.972Z","repository":{"id":17484338,"uuid":"80653249","full_name":"GabrielRF/RastreioBot","owner":"GabrielRF","description":"Telegram Bot @RastreioBot","archived":false,"fork":false,"pushed_at":"2023-09-21T14:10:14.000Z","size":850,"stargazers_count":368,"open_issues_count":22,"forks_count":55,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-29T08:09:31.678Z","etag":null,"topics":["hacktoberfest","mongodb","python","telegram","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"https://rastreiobot.xyz","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GabrielRF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":"gabrielrf","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-02-01T19:02:22.000Z","updated_at":"2025-03-19T19:38:47.000Z","dependencies_parsed_at":"2023-01-13T19:21:18.378Z","dependency_job_id":"ac00c757-581b-4529-9df2-914a502a7e65","html_url":"https://github.com/GabrielRF/RastreioBot","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/GabrielRF%2FRastreioBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielRF%2FRastreioBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielRF%2FRastreioBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielRF%2FRastreioBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabrielRF","download_url":"https://codeload.github.com/GabrielRF/RastreioBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246167037,"owners_count":20734377,"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":["hacktoberfest","mongodb","python","telegram","telegram-bot","telegram-bot-api"],"created_at":"2024-07-31T22:01:43.852Z","updated_at":"2025-03-29T09:30:54.939Z","avatar_url":"https://github.com/GabrielRF.png","language":"Python","funding_links":["https://patreon.com/gabrielrf"],"categories":["Python","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003cimg align=\"right\" alt=\"RastreioBot Logo\" width=\"30%\" height=\"auto\" src=\"https://github.com/GabrielRF/RastreioBot/blob/master/imgs/rastreiobot.png?raw=true\"\u003e\n\n# [RastreioBot](http://telegram.me/RastreioBot)\n\n[![Build Status](https://github.com/GabrielRF/RastreioBot/actions/workflows/ci.yml/badge.svg)](https://github.com/GabrielRF/RastreioBot/actions/workflows/ci.yml)\n[![Deploy](https://github.com/GabrielRF/RastreioBot/actions/workflows/deploy.yml/badge.svg)](https://github.com/GabrielRF/RastreioBot/actions/workflows/deploy.yml)\n[![Twitter Follow](https://img.shields.io/twitter/follow/espadrine.svg?style=social\u0026label=Follow)](https://twitter.com/gabrf)\n\n* [About](#about)\n* [Setup](#setup)\n* [Run](#run)\n* [Contribute](#contribute)\n* [Contact](#contact)\n\n## About\n\nThis is a [Telegram](http://telegram.org) Bot that tracks packages from the [Brazilian Mail Service](https://www.correios.com.br/). It runs on Python 3 and uses MongoDB.\n\n[Try it!](http://telegram.me/RastreioBot)\n\n## Setup\n\nWe use [Poetry](https://python-poetry.org/) to manage our dependencies. Check out its [Poetry guide](https://python-poetry.org/docs/#installation) to install it on your machine.\n\nTo install the required packages, use the command below. It will install the runtime and also the development dependencies (e.g. Pytest).\n\n```\n$ poetry install\n```\n\nCreate a file `bot.conf` following `bot.conf_sample`.\n\n`TOKEN` Bot token generated by BotFather\n\n`int_check` Minimum interval between checks for the same package (3600 means 1 hour)\n\n`*_log` Log files\n\n`patreon` List of people that donate to the bot\n\n`Banned` List of banned users\n\n`usuario` User provived by Correios\n\n`senha` Password provided by Correios\n\n`token` Token provided by Correios\n\n`key` Key provided by TrackingMore\n\n`url` Sentry URL\n\n### MongoDB\n\n__RaspberryPi__\n```\nhttps://github.com/GabrielRF/Docker-MongoDB-RPi\n```\n__Mac__\n\n```\nbrew install mongodb-community\nbrew services start mongodb-community\n```\n\n### SQLite\n\n\n```\ntouch data_base.db\n```\n\ncreate db structure\n```\nCREATE TABLE assinantes (\n        id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n        chatid TEXT,\n        picpayid TEXT);\n```\n\n## Commands available\n\n```\n$ poetry run rastreio --help\nUsage: rastreio [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  packages:clean                  Clean old and duplicated packages\n  packages:update                 Update active packages\n  packages:delete \u003cpackage-code\u003e  Delete a package\n  bot:run [--maintenance]         Set bot to maintenance mode\n```\n\n## Running tests\n\nThe tests are running on `pytest`, so, in order to run them, just do\n\n```\npoetry run pytest\n```\n\n## Contribute\n\nPull requests and issues are welcome!\n\n## Contact\n\n[Telegram](http://telegram.me/GabrielRF)\n\n[Site](http://www.gabrf.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGabrielRF%2FRastreioBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGabrielRF%2FRastreioBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGabrielRF%2FRastreioBot/lists"}