{"id":23255749,"url":"https://github.com/aorosoeon/concentration_bot","last_synced_at":"2025-04-06T03:44:40.765Z","repository":{"id":41397539,"uuid":"488264181","full_name":"aorosoeon/concentration_bot","owner":"aorosoeon","description":"Chatbot for Telegram messenger, which sets a timer for concentration, asks about distractions and success of a task, and uploads this info to a google spreadsheet. Something like the Pomodoro Technique with results recording.","archived":false,"fork":false,"pushed_at":"2024-08-06T01:01:04.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T10:17:25.797Z","etag":null,"topics":["bot","telegram","telegram-bot","timer"],"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/aorosoeon.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":"2022-05-03T15:29:02.000Z","updated_at":"2024-08-06T01:01:07.000Z","dependencies_parsed_at":"2025-02-12T10:16:08.072Z","dependency_job_id":"5f39fd6f-2319-4f36-9767-7f064a357f90","html_url":"https://github.com/aorosoeon/concentration_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/aorosoeon%2Fconcentration_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aorosoeon%2Fconcentration_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aorosoeon%2Fconcentration_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aorosoeon%2Fconcentration_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aorosoeon","download_url":"https://codeload.github.com/aorosoeon/concentration_bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430836,"owners_count":20937873,"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":["bot","telegram","telegram-bot","timer"],"created_at":"2024-12-19T11:31:06.723Z","updated_at":"2025-04-06T03:44:40.734Z","avatar_url":"https://github.com/aorosoeon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# concentration_bot\nChatbot for Telegram messenger, which sets a timer for concentration, asks about distractions and success of a task, and uploads this info to a google spreadsheet. Something like the Pomodoro Technique with results recording.\n\nI used:\n1. AsyncTelebot and a couple of other classes from pyTelegramBotAPI package for connecting to Telegram API\n2. wraps from functools for creating private access mode (the idea is not mine, I used code from stackoverflow user \"S.D.\" (https://stackoverflow.com/questions/55437732/how-to-restrict-the-acess-to-a-few-users-in-pytelegrambotapi/68229442#68229442)\n3. aioschedule for creating a timer\n4. asyncio for gathering two tasks - bot.infinity_polling and scheduler\n5. google.oauth2 and gspread for connecting to a google spreadsheet\n\nThis bot has three commands: set, unset, and stats. When you press \"set\", you get 3 options of concentration period: 20, 30, and 40 minutes. When the time is up, you get a notification and then could rate your focus and completion of the task. This info uploads to a Google spreadsheet. \"unset\" - discards a timer. \"stats\" - shows you info from a spreadsheet in a compact style (for a message).\n\nI run this script from VM in Google Cloud using \"nohup\" command for continuous work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faorosoeon%2Fconcentration_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faorosoeon%2Fconcentration_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faorosoeon%2Fconcentration_bot/lists"}