{"id":16752536,"url":"https://github.com/anirbanmu/substitute-bot","last_synced_at":"2025-09-25T10:21:07.080Z","repository":{"id":151959978,"uuid":"120121976","full_name":"anirbanmu/substitute-bot","owner":"anirbanmu","description":"VIM-like substitution bot for reddit comments","archived":false,"fork":false,"pushed_at":"2019-03-26T03:12:13.000Z","size":39,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-10T14:51:50.287Z","etag":null,"topics":["bot","jruby","reddit","ruby","ruby-application","substitution-bot"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anirbanmu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-02-03T19:21:21.000Z","updated_at":"2022-02-09T22:23:41.000Z","dependencies_parsed_at":"2023-06-10T05:30:42.428Z","dependency_job_id":null,"html_url":"https://github.com/anirbanmu/substitute-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/anirbanmu%2Fsubstitute-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anirbanmu%2Fsubstitute-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anirbanmu%2Fsubstitute-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anirbanmu%2Fsubstitute-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anirbanmu","download_url":"https://codeload.github.com/anirbanmu/substitute-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299843,"owners_count":20916192,"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","jruby","reddit","ruby","ruby-application","substitution-bot"],"created_at":"2024-10-13T02:47:23.642Z","updated_at":"2025-09-25T10:21:02.028Z","avatar_url":"https://github.com/anirbanmu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# substitute-bot\n\n[![CircleCI](https://circleci.com/gh/anirbanmu/substitute-bot.svg?style=shield)](https://circleci.com/gh/anirbanmu/substitute-bot)\n\nA [Reddit](https://www.reddit.com/) bot that provides the ability to search and replace parent comments. Supports Ruby regular expression syntax.\n\n## Setup\n- Clone this repo\n- `gem install bundler`\n- `bundle install`\n\n### Bot\n- `ruby bot.rb`\n\n### Web\n- `ruby web.rb`\n\n## Deployment on Heroku\n- `heroku create`\n- `heroku addons:create heroku-redis:hobby-dev`\n- Set environment variables for Reddit integrations\n  - `heroku config:set REDDIT_CLIENT_ID=\u003cYOUR_CLIENT_ID\u003e`\n  - `heroku config:set REDDIT_CLIENT_SECRET=\u003cYOUR_CLIENT_SECRET\u003e`\n  - `heroku config:set REDDIT_BOT_USERNAME=\u003cYOUR_BOTS_USERNAME\u003e`\n  - `heroku config:set REDDIT_BOT_PASSWORD=\u003cYOUR_BOTS_PASSWORD\u003e`\n- `git push heroku master`\n\n## Gems\n### Bot\n- sucker_punch (for threaded handling of comments)\n- Redd (Reddit API wrapper)\n- RSpec (for tests)\n- redis-namespace\n\n### Web\n- Sinatra\n- Haml\n- Sass\n\n## Testing\n- `bundle exec rspec`\n\n## Live\nYou can check out the live running web frontend @ [https://substitute-bot.herokuapp.com/](https://substitute-bot.herokuapp.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanirbanmu%2Fsubstitute-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanirbanmu%2Fsubstitute-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanirbanmu%2Fsubstitute-bot/lists"}