{"id":13469249,"url":"https://github.com/simon-weber/gchatautorespond","last_synced_at":"2025-03-26T06:32:02.329Z","repository":{"id":141954563,"uuid":"44493439","full_name":"simon-weber/gchatautorespond","owner":"simon-weber","description":"Automatic responses for Google Chat and Hangouts.","archived":true,"fork":false,"pushed_at":"2022-11-01T22:44:07.000Z","size":1863,"stargazers_count":58,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T23:54:58.478Z","etag":null,"topics":["bot","django","google-hangouts","saas"],"latest_commit_sha":null,"homepage":"https://gchat.simon.codes/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simon-weber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2015-10-18T19:43:51.000Z","updated_at":"2024-01-23T02:56:32.000Z","dependencies_parsed_at":"2024-01-18T20:05:33.516Z","dependency_job_id":null,"html_url":"https://github.com/simon-weber/gchatautorespond","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/simon-weber%2Fgchatautorespond","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon-weber%2Fgchatautorespond/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon-weber%2Fgchatautorespond/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon-weber%2Fgchatautorespond/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simon-weber","download_url":"https://codeload.github.com/simon-weber/gchatautorespond/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245604039,"owners_count":20642930,"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","django","google-hangouts","saas"],"created_at":"2024-07-31T15:01:30.697Z","updated_at":"2025-03-26T06:32:01.622Z","avatar_url":"https://github.com/simon-weber.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Autoresponder for Hangouts\n\nAutoresponder is a Django project that hosts static Hangouts bots.\n\nI originally created it to avoid unnoticed messages to my forwarding accounts, but it's also found use with employees and small business owners.\n\nThe hosted version is available at https://gchat.simon.codes.\n\n## self-hosting\n\nAutoresponder can also be self-hosted.\n\nFirst, install the dependencies and connect your account:\n```\n$ pip install -r requirements.txt\n$ python standalone_bot.py auth\n```\nYou only need to run this once.\nThe OAuth credentials will be written to your current working directory.\n\nThen, start the bot:\n```\n$ python standalone_bot.py run my-email@gmail.com 'my autoresponse'\n```\n\nTo further customize your bot, modify the constructor params for StandaloneBot at the bottom of standalone\\_bot.py (the arguments are documented in [lib.chatworker.bot.AutoRespondBot](https://github.com/simon-weber/gchatautorespond/blob/master/gchatautorespond/lib/chatworker/bot.py)).\n\n### email notifications\n\nEmail notifications are not enabled by default.\nTo enable them you must configure [gchatautorespond/settings\\_standalone.py](https://github.com/simon-weber/gchatautorespond/blob/master/gchatautorespond/settings_standalone.py) to use your mail server.\n[Gmail SMTP](https://support.google.com/a/answer/176600) values are provided as an example;\nto use it, set `DJ_EMAIL_HOST_USER` to your gmail address and `DJ_EMAIL_HOST_PASSWORD` to your password (or app password) as environment variables.\nThen, verify your configuration with:\n```\nDJANGO_SETTINGS_MODULE=gchatautorespond.settings_standalone python manage.py sendtestemail from@example.com to@example.com\n```\nOnce email sending is configured, you can enable autoresponses with notifications by running:\n```\n$ python standalone_bot.py notify my-email@gmail.com 'my autoresponse'\n```\nOr, you can just send notifications without responses with:\n```\n$ python standalone_bot.py notify my-email@gmail.com\n```\nIn either case, notifications are sent from your `DJ_EMAIL_HOST_USER` to your provided email.\nYou can control the recipient email by changing the `notify_email` parameter to StandaloneBot.\n\n## project layout\n\n* ansible: deployments\n* gchatautorespond/apps/autorespond: main django app\n* gchatautorespond/lib/chatworker: manages chat bots\n* nix: infra/config management\n* secrets: prod secrets (managed with transcypt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-weber%2Fgchatautorespond","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon-weber%2Fgchatautorespond","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-weber%2Fgchatautorespond/lists"}