{"id":13340568,"url":"https://github.com/snowwm/karen","last_synced_at":"2025-03-11T18:31:25.595Z","repository":{"id":93841102,"uuid":"193359201","full_name":"snowwm/karen","owner":"snowwm","description":"A vk.com bot for total surveillance :telescope:","archived":false,"fork":false,"pushed_at":"2022-12-09T05:24:21.000Z","size":57,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-24T06:28:14.818Z","etag":null,"topics":["bot","vk","vk-bot"],"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/snowwm.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":"2019-06-23T14:39:41.000Z","updated_at":"2021-12-21T21:14:44.000Z","dependencies_parsed_at":"2023-03-08T19:00:33.748Z","dependency_job_id":null,"html_url":"https://github.com/snowwm/karen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowwm%2Fkaren","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowwm%2Fkaren/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowwm%2Fkaren/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowwm%2Fkaren/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowwm","download_url":"https://codeload.github.com/snowwm/karen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243090346,"owners_count":20234783,"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","vk","vk-bot"],"created_at":"2024-07-29T19:23:37.158Z","updated_at":"2025-03-11T18:31:25.589Z","avatar_url":"https://github.com/snowwm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# karen\n\n[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm.fming.dev)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n\nThis VK bot notifies all chat members when someone edits or deletes a message.\nThe bot also shows message's old text (stored in a database for this purpose).\nMinor edits (with [Damerau–Levenshtein distance](https://en.wikipedia.org/wiki/Damerau–Levenshtein_distance) up to 3) and non-textual edits are ignored.\n\n## Usage\n\nYou can run this bot on Heroku or any other server.\nYou will also need a MongoDB database. Provide it in the env variable `AFH_DB_URL` (like `AFH_DB_URL=mongodb://user:pass@example.com/db-name`).\n\nYou can get a cloud MongoDB instance for free on https://www.mongodb.com/cloud (there's a web UI and VS Code plugin for editing data).\n\nApp configuration is stored as JSON in the database table `singletons`. It looks like:\n\n```json\n{\n  \"_id\": \"config\",\n  \"access_token\": \"VK group API token here\",\n  \"logging\": {\n    \"version\": 1,\n    \"incremental\": true,\n    \"loggers\": {\n      \"karen\": {\n        \"level\": \"INFO\"\n      }\n    }\n  }\n}\n```\n\nIt's also a good idea to create a [TTL index](https://docs.mongodb.com/manual/tutorial/expire-data/) to remove old messages from the DB.\n\n## Todo\n\n- commands\n  - help\n  - per-chat settings?\n- tone analysis ([example](https://github.com/Ngoroth/Toxicometer))\n  - warn people if they are being toxic\n- ChatOps\n- integrate some bot framework, become channel-agnostic\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowwm%2Fkaren","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowwm%2Fkaren","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowwm%2Fkaren/lists"}