{"id":16752555,"url":"https://github.com/anirbanmu/substitute-bot-go","last_synced_at":"2025-04-10T15:52:34.970Z","repository":{"id":45232402,"uuid":"213035535","full_name":"anirbanmu/substitute-bot-go","owner":"anirbanmu","description":"Version of substitute-bot written in go (original is in Ruby)","archived":false,"fork":false,"pushed_at":"2023-03-05T10:15:13.000Z","size":92,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T13:43:38.200Z","etag":null,"topics":["bot","go","golang","substitute-bot"],"latest_commit_sha":null,"homepage":null,"language":"Go","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":"2019-10-05T16:47:11.000Z","updated_at":"2025-02-06T00:54:52.000Z","dependencies_parsed_at":"2024-06-21T17:55:54.044Z","dependency_job_id":"a2b664a9-e39a-499e-8581-1daa4bf1c372","html_url":"https://github.com/anirbanmu/substitute-bot-go","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-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anirbanmu%2Fsubstitute-bot-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anirbanmu%2Fsubstitute-bot-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anirbanmu%2Fsubstitute-bot-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anirbanmu","download_url":"https://codeload.github.com/anirbanmu/substitute-bot-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248245471,"owners_count":21071494,"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","go","golang","substitute-bot"],"created_at":"2024-10-13T02:47:26.240Z","updated_at":"2025-04-10T15:52:34.928Z","avatar_url":"https://github.com/anirbanmu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# substitute-bot-go\n\n[![checks](https://github.com/anirbanmu/substitute-bot-go/workflows/checks/badge.svg)](https://github.com/anirbanmu/substitute-bot-go/actions?query=workflow%3Achecks)\n\nA [Reddit](https://www.reddit.com/) bot that provides the ability to search and replace parent comments. Supports Go regular expression syntax. Aim is not to support everything, just very simple replacement. This is a port of the original Ruby [substitute-bot](https://github.com/anirbanmu/substitute-bot) into Go.\n\n## Compatibility\n\nThis project uses Go modules so please use a version of Go (\u003e= 1.11) that supports them. This has been developed and tested with Go 1.13.1.\n\n## Setup\n\n- Clone this repo\n- The following environment variables are required to run:\n  - `SUBSTITUTE_BOT_CLIENT_ID=\u003cYOUR_REDDIT_CLIENT_ID\u003e`\n  - `SUBSTITUTE_BOT_CLIENT_SECRET=\u003cYOUR_REDDIT_CLIENT_SECRET\u003e`\n  - `SUBSTITUTE_BOT_USERNAME=\u003cYOUR_REDDIT_USERNAME\u003e`\n  - `SUBSTITUTE_BOT_PASSWORD=\u003cYOUR_REDDIT_PASSWORD\u003e`\n  - `SUBSTITUTE_BOT_USER_AGENT=\u003cUSER_AGENT_TO_USE_WITH_REDDIT_API_CALLS\u003e`\n- The following environment variables are optional:\n  - `SUBSTITUTE_BOT_PORT=\u003cPORT_NUMBER_FOR_WEB_FRONTEND\u003e` (only used by web frontend; defaults to 3000)\n- To run the bot: `go run cmd/bot/main.go`\n- To run the web frontend that shows recent replies: `go run cmd/bot/main.go cmd/bot/index.html.go cmd/bot/style.css.go`\n\n## Testing\n\n- Some of the tests utilize [Gingko/Gomega](https://onsi.github.io/ginkgo/)\n- `go test --cover --short ./...`\n\n## Live\n\nYou can check out the live running web frontend @ https://substitute-bot.electrostat.xyz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanirbanmu%2Fsubstitute-bot-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanirbanmu%2Fsubstitute-bot-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanirbanmu%2Fsubstitute-bot-go/lists"}