{"id":26762109,"url":"https://github.com/alexeevit/valera","last_synced_at":"2025-06-14T19:04:10.617Z","repository":{"id":132919150,"uuid":"287927857","full_name":"alexeevit/valera","owner":"alexeevit","description":"A telegram bot with a Markov chain under the hood","archived":false,"fork":false,"pushed_at":"2021-12-07T11:31:07.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T18:51:29.060Z","etag":null,"topics":["markov-chain","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/alexeevit.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":"2020-08-16T11:11:21.000Z","updated_at":"2021-12-22T10:37:13.000Z","dependencies_parsed_at":"2024-05-28T15:04:34.760Z","dependency_job_id":null,"html_url":"https://github.com/alexeevit/valera","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexeevit/valera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevit%2Fvalera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevit%2Fvalera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevit%2Fvalera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevit%2Fvalera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexeevit","download_url":"https://codeload.github.com/alexeevit/valera/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevit%2Fvalera/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259868300,"owners_count":22924230,"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":["markov-chain","ruby"],"created_at":"2025-03-28T18:34:11.023Z","updated_at":"2025-06-14T19:04:10.609Z","avatar_url":"https://github.com/alexeevit.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# - Zdarov, this is Valera\n\nI'm a telegram bot with a Markov chain under the hood written in pure Ruby. Simply speaking, you can add me to your chat and I'll listen to you guys. If you want me to say something based on the chat, you have 3 options:\n\n- Use the command `/generate`\n- Mention me in a message\n- Reply to my message\n\n## Configuration\n\nUse the next environment variables to configure me:\n\n- `REDIS_URL` — the redis instance URL (example: `redis://localhost:6379/7`). I use redis to store the Markov chains.\n- `TELEGRAM_API_TOKEN` — a token you obtained from the Telegram's BotFather.\n- `APP_ENV` — supported environments: `development`, `production`, `test` (default: `development`).\n\nFor the `development` environment you can define the variables in the `.env` file.\n\n## Run\n\nTo run the bot locally, use the `bin/bot` binary.\n\n## Deploy\n\nUse the prepared `Capistrano` config files. You only need to define `valera.site` in your `/etc/hosts` and add your ssh public key to the end server. Capistrano will try to deploy the bot into `deploy@valera.site:/var/www/valera`.\n\nTo run the server, use the systemd-service config file `valera.service.example`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeevit%2Fvalera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexeevit%2Fvalera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeevit%2Fvalera/lists"}