{"id":15112733,"url":"https://github.com/lus/dgc","last_synced_at":"2025-09-27T15:30:37.243Z","repository":{"id":53574744,"uuid":"263386844","full_name":"lus/dgc","owner":"lus","description":"A DiscordGo command router with tons of useful features","archived":true,"fork":false,"pushed_at":"2021-09-30T19:09:06.000Z","size":63,"stargazers_count":53,"open_issues_count":4,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-27T01:01:29.510Z","etag":null,"topics":["bot","command","discord","discordgo","router"],"latest_commit_sha":null,"homepage":null,"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/lus.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}},"created_at":"2020-05-12T16:10:07.000Z","updated_at":"2024-07-09T09:51:02.000Z","dependencies_parsed_at":"2022-09-19T03:20:33.547Z","dependency_job_id":null,"html_url":"https://github.com/lus/dgc","commit_stats":null,"previous_names":["lukaesebrot/dgc"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lus%2Fdgc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lus%2Fdgc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lus%2Fdgc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lus%2Fdgc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lus","download_url":"https://codeload.github.com/lus/dgc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234444155,"owners_count":18833649,"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","command","discord","discordgo","router"],"created_at":"2024-09-26T01:01:08.246Z","updated_at":"2025-09-27T15:30:36.881Z","avatar_url":"https://github.com/lus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white)](https://pkg.go.dev/github.com/Lukaesebrot/dgc)\n\n# dgc\n\nA DiscordGo command router with tons of useful features\nIf you find any bugs or if you have a feature request, please tell me using an issue.\n\n## Deprecation notice\n\nAfter thinking a lot about how to continue this project, I decided I won't.\nThe main reason for this is that Discord will make the message content intent privileged in 2022 and thus will force every bot developer to use slash commands.\nI don't feel motivated to continue a project which will become pretty much redundant in the next months, especially because a major rewrite of some features would be mandatory for me as I started the project at the beginning of my Go learning period and I evolved a lot since then.\nI think I could use the time much better for new, cooler projects.\n\n## Basic example\n\nThis just shows a very basic example:\n```go\nfunc main() {\n    // Discord bot logic here\n    session, _ := ...\n\n    // Create a new command router\n    router := dgc.Create(\u0026dgc.Router{\n        Prefixes: []string{\"!\"},\n    })\n\n    // Register a simple ping command\n    router.RegisterCmd(\u0026dgc.Command{\n        Name: \"ping\",\n        Description: \"Responds with 'pong!'\",\n        Usage: \"ping\",\n        Example: \"ping\",\n        IgnoreCase: true,\n        Handler: func(ctx *dgc.Ctx) {\n            ctx.RespondText(\"Pong!\")\n        },\n    })\n\n    // Initialize the router\n    router.Initialize(session)\n}\n```\n\n## Usage\n\nYou can find examples for the more complex usage and all the integrated features in the `examples/*.go` files.\n\n## Arguments\n\nTo find out how you can use the integrated argument parser, just look into the `examples/arguments.go` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flus%2Fdgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flus%2Fdgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flus%2Fdgc/lists"}