{"id":27257897,"url":"https://github.com/estevao90/busgv_bot","last_synced_at":"2025-08-23T22:02:53.088Z","repository":{"id":45586112,"uuid":"222796197","full_name":"estevao90/busgv_bot","owner":"estevao90","description":"Bot do Telegram que informa os horários de saída dos ônibus da Grande Vitória - ES.","archived":false,"fork":false,"pushed_at":"2022-12-08T12:39:53.000Z","size":86,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-28T02:40:38.741Z","etag":null,"topics":["ceturb","gvbus","hacktoberfest","telegram"],"latest_commit_sha":null,"homepage":"","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/estevao90.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}},"created_at":"2019-11-19T21:47:50.000Z","updated_at":"2022-12-13T00:27:30.000Z","dependencies_parsed_at":"2022-07-26T13:17:25.569Z","dependency_job_id":null,"html_url":"https://github.com/estevao90/busgv_bot","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estevao90%2Fbusgv_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estevao90%2Fbusgv_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estevao90%2Fbusgv_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estevao90%2Fbusgv_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estevao90","download_url":"https://codeload.github.com/estevao90/busgv_bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333660,"owners_count":21086235,"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":["ceturb","gvbus","hacktoberfest","telegram"],"created_at":"2025-04-11T03:19:00.501Z","updated_at":"2025-04-11T03:19:00.994Z","avatar_url":"https://github.com/estevao90.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# busgv_bot\n\nBot do Telegram que informa os horários de saída dos ônibus da Grande Vitória - ES\n\n[![GitHub license](https://img.shields.io/github/license/estevao90/busgv_bot.svg)](https://github.com/estevao90/busgv_bot/blob/master/LICENSE)\n[![Tests](https://github.com/estevao90/busgv_bot/workflows/Tests/badge.svg)](https://github.com/estevao90/busgv_bot/actions?query=workflow%3ATests)\n[![Release](https://github.com/estevao90/busgv_bot/workflows/Release/badge.svg)](https://github.com/estevao90/busgv_bot/actions?query=workflow%3ARelease)\n\n## Instalação do Serverless Framework\n\n```shell\n# Instalando serverless\n# Necessário Node\nsudo npm install -g serverless\n\n# Instalando autocomplete\nsls config tabcompletion install\n```\n\n## Ambiente de DEV\n\n```shell\n# Pipenv\npipenv install --dev\n```\n\n## Deploy\n\n```shell\n# Criar arquivo .env com base em .env.default\n# Indicar o valor das variáveis\ncp .env.default .env\n\n# Pipenv\npipenv shell\n\n# Deploy na AWS\nsls deploy\n\n# Excluir deploy\nsls remove\n```\n\n## Telegram\n\n```shell\n# Registrar webhook\ncurl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/setWebHook?url=\u003cENDPOINT_AWS\u003e\n\n# Verificar status do webhook\ncurl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getWebhookInfo\n```\n\n## Desenvolvimento\n\n```shell\n# Remover webhook\ncurl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/deleteWebhook\n\n# Obtendo mensagens\ncurl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates\n\n# Para obter apenas as novas mensagens\ncurl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates?offset=\u003cresult[-1].update_id + 1\u003e\n```\n\n### Testes\n\n```shell\n# Ambiente pipenv\npipenv shell\n\n# Executando testes\npython -m pytest -v\n```\n\n## Comandos úteis\n\n```shell\n# Testar função na AWS\nsls invoke -f \u003cfunction\u003e [-p \u003cevent_file_path\u003e -x \u003ccontext_file_path\u003e]\n\n# Testar função localmente\nsls invoke local -f \u003cfunction\u003e [-p \u003cevent_file_path\u003e -x \u003ccontext_file_path\u003e]\n\n# Lint\npylint funcs/* app/*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festevao90%2Fbusgv_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festevao90%2Fbusgv_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festevao90%2Fbusgv_bot/lists"}