{"id":24708099,"url":"https://github.com/pungrumpy/discord-bot-go","last_synced_at":"2025-10-09T09:31:50.781Z","repository":{"id":163473883,"uuid":"638833909","full_name":"PunGrumpy/discord-bot-go","owner":"PunGrumpy","description":"A secure, Dockerized Discord bot written in Go, featuring command handling, environment variable support, and a Go server for status monitoring and alerts.","archived":false,"fork":false,"pushed_at":"2023-06-30T13:34:19.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T23:41:40.716Z","etag":null,"topics":["discord","discord-bot","discordgo","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/PunGrumpy.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":"2023-05-10T07:52:55.000Z","updated_at":"2024-09-22T00:01:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"a953506e-0cd8-4b59-8f11-f44db6d1dba4","html_url":"https://github.com/PunGrumpy/discord-bot-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PunGrumpy/discord-bot-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fdiscord-bot-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fdiscord-bot-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fdiscord-bot-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fdiscord-bot-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PunGrumpy","download_url":"https://codeload.github.com/PunGrumpy/discord-bot-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fdiscord-bot-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001135,"owners_count":26083022,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["discord","discord-bot","discordgo","golang"],"created_at":"2025-01-27T06:27:45.251Z","updated_at":"2025-10-09T09:31:50.772Z","avatar_url":"https://github.com/PunGrumpy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Bot in Go\n\nThis project is a Discord bot written in Go. It uses the discordgo package and includes a variety of features, such as command handling, environment variable configuration, Docker deployment, and a server for status monitoring and alerts.\n\n## Features\n\n- Command handling: The bot is capable of handling various commands and responds accordingly.\n- Environment variable configuration: Both `.env` file and system environment variables are supported for configuration.\n- Docker deployment: The bot is containerized using Docker, which makes it easy to deploy anywhere.\n- Server for status monitoring and alerts: A server written in Go monitors the status of the bot and sends alerts when the bot is down or encounters issues.\n\n## Setup and Running\n\n1. Clone this repository.\n\n```bash\ngit clone https://github.com/PunGrumpy/discord-bot-go.git\ncd discord-bot-go\n```\n\n2. Create a `.env` file in the root of the project and fill in your Discord bot token and guild id:\n\n```bash\nBOT_TOKEN=your_bot_token\n```\n\n3. Create a `server.crt` and `server.key` file in the root of the project for HTTPS support. You can use the following command to generate a self-signed certificate:\n\n```bash\nopenssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -nodes # 1 year\n```\n\n3. Build the Docker image and start the services:\n\n```bash\ndocker-compose up -d\n# or\ndocker compose up -d\n```\n\nThe bot should now be running in your Discord server, and the status monitoring server should be available at `http://localhost:8080`.\n\n# License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpungrumpy%2Fdiscord-bot-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpungrumpy%2Fdiscord-bot-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpungrumpy%2Fdiscord-bot-go/lists"}