{"id":41903835,"url":"https://github.com/tyzbit/go-discord-amputator","last_synced_at":"2026-01-25T15:13:05.798Z","repository":{"id":42493166,"uuid":"474239776","full_name":"tyzbit/go-discord-amputator","owner":"tyzbit","description":"Discord Amputator bot rewritten in Go","archived":false,"fork":false,"pushed_at":"2026-01-15T14:04:07.000Z","size":16170,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-24T16:18:19.632Z","etag":null,"topics":["bot","discord","google-amp"],"latest_commit_sha":null,"homepage":"https://top.gg/bot/868917305722167336","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyzbit.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-26T04:21:00.000Z","updated_at":"2026-01-15T14:03:39.000Z","dependencies_parsed_at":"2022-09-08T07:42:49.642Z","dependency_job_id":"728f55bb-e314-49a5-9ff9-56361ec08c04","html_url":"https://github.com/tyzbit/go-discord-amputator","commit_stats":{"total_commits":117,"total_committers":2,"mean_commits":58.5,"dds":0.2564102564102564,"last_synced_commit":"7a87904efbc6a7abb5089a9f98cfdb35cfbb6b2f"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/tyzbit/go-discord-amputator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyzbit%2Fgo-discord-amputator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyzbit%2Fgo-discord-amputator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyzbit%2Fgo-discord-amputator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyzbit%2Fgo-discord-amputator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyzbit","download_url":"https://codeload.github.com/tyzbit/go-discord-amputator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyzbit%2Fgo-discord-amputator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","discord","google-amp"],"created_at":"2026-01-25T15:13:05.213Z","updated_at":"2026-01-25T15:13:05.791Z","avatar_url":"https://github.com/tyzbit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-discord-amputator\nDiscord Amputator bot rewritten in Go\n\n## Configuration\n\nSet some environment variables before launching, or add a `.env` file.\n\nIf database environment variables are provided, the bot will save stats to an external database.\nOtherwise, it will save stats to a local sqlite database at `/var/go-discord-amputator/local.db`\n\n| Variable | Value(s) |\n|:-|:-|\n| ADMINISTRATOR_IDS | IDs of users allowed to use administrator commands |\n| DB_DATABASE | Database name for database\n| DB_HOST | Hostname for database |\n| DB_PASSWORD | Password for database user |\n| DB_USER | Username for database user |\n| LOG_LEVEL | `trace`, `debug`, `info`, `warn`, `error` |\n| TOKEN | The Discord token the bot should use |\n\n## Usage\n\nConfigure the bot with `!amp config [setting] [value]`. The settings are below:\n\n| Setting | Default | Description |\n|:-|:-|:-|\n| switch | `on` | Enable the bot: `on`, disable the bot: `off` |\n| replyto | `off` | Reply to the original message for context, `on` or `off` |\n| embed | `on` | Whether to use an embed message or just reply with links (Discord will then auto preview them), `on` or `off` |\n| guess | `on` | Whether to guess if the URL is difficult to amputate, `on` or `off` |\n| maxdepth | `3` | The maximum number of links deep to go to find the canonical URL,  any number |\n\nYou can also use `!amp stats` to get amputation stats for your server.\n\n## Development\n\nCreate a `.env` file with your configuration, at the bare minimum you need\na Discord token for `TOKEN`. You can either `docker compose up --build` to run \nwith a mysql database, or just `go run main.go` to run with a sqlite database.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyzbit%2Fgo-discord-amputator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyzbit%2Fgo-discord-amputator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyzbit%2Fgo-discord-amputator/lists"}