{"id":16897945,"url":"https://github.com/fedorlap2006/disgolf","last_synced_at":"2025-06-24T08:35:15.443Z","repository":{"id":57629908,"uuid":"353103914","full_name":"FedorLap2006/disgolf","owner":"FedorLap2006","description":"Make Discord bots on Go with ease","archived":false,"fork":false,"pushed_at":"2023-12-18T22:57:15.000Z","size":144,"stargazers_count":28,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T06:01:31.130Z","etag":null,"topics":["discord","framework","golang"],"latest_commit_sha":null,"homepage":"","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/FedorLap2006.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":"2021-03-30T18:32:48.000Z","updated_at":"2025-02-20T13:23:14.000Z","dependencies_parsed_at":"2024-10-28T13:07:25.793Z","dependency_job_id":"95bc2a1f-96cd-42ef-9769-de755ee0b75a","html_url":"https://github.com/FedorLap2006/disgolf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FedorLap2006/disgolf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedorLap2006%2Fdisgolf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedorLap2006%2Fdisgolf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedorLap2006%2Fdisgolf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedorLap2006%2Fdisgolf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedorLap2006","download_url":"https://codeload.github.com/FedorLap2006/disgolf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedorLap2006%2Fdisgolf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261636739,"owners_count":23188083,"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":["discord","framework","golang"],"created_at":"2024-10-13T17:40:43.714Z","updated_at":"2025-06-24T08:35:15.395Z","avatar_url":"https://github.com/FedorLap2006.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"docs/img/banner.png\" alt=\"Disgolf's banner\" width=\"250\"/\u003e\n\u003cimg src=\"docs/img/logo.png\" alt=\"Disgolf's logo\" width=\"70\"/\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\u003ch2\u003eMake Discord bots on Go with ease\u003c/h2\u003e\u003c/div\u003e\n\n\n## About\nDisgolf is lightweight \u003ca href=\"https://go.dev\"\u003eGo\u003c/a\u003e framework for building bots on Discord.\u003cbr/\u003eIt does all complicated things for you, keeping your code clean and helps you focus on important stuff.\n\n## Installation\nTo install the library you must have at least Go of version 1.15 and use `master` version of DiscordGo, otherwise you will end up with a lot of errors.\nAnd that's not good.\n```bash\n$ go get -u github.com/FedorLap2006/disgolf\n```\n\n## Usage\n\u003e For complicated usage examples you can visit our [examples](https://github.com/FedorLap2006/disgolf/tree/master/examples) directory.\n\n```go\npackage main\n\nimport (\n    \"os\"\n    \"signal\"\n    \"syscall\"\n    \"time\"\n\n    \"github.com/FedorLap2006/disgolf\"\n    \"github.com/bwmarrin/discordgo\"\n)\n\nfunc main() {\n    bot, err := disgolf.New(\"BOT-TOKEN\")\n    if err != nil {\n        panic(err)\n    }\n\n    bot.Router.Register(\u0026disgolf.Command{\n        Name: \"hello_world\",\n        Description: \"Say hi to the world!\",\n        Handler: disgolf.CommandHandlerFunc(func(ctx *disgolf.Ctx) error {\n            ctx.Respond(\u0026discordgo.InteractionResponse {\n                Type: discordgo.InteractionResponseChannelMessageWithSource,\n                Data: \u0026discordgo.InteractionResponseData{\n                    Content: \"Hello world!\",\n                },\n            })\n        })\n    })\n\n    err := bot.Router.Sync(bot.Session, \"\", \"GUILD-TEST-ID\")\n    if err != nil {\n        panic(err)\n    }\n\n    err := bot.Open()\n    if err != nil {\n        panic(err)\n    }\n    defer bot.Close()\n    \n    stchan := make(chan os.Signal, 1)\n    signal.Notify(stchan, syscall.SIGTERM, os.Interrupt, syscall.SIGSEGV)\nend:\n\tfor {\n\t\tselect {\n\t\tcase \u003c-stchan:\n\t\t\tbreak end\n\t\tdefault:\n\t\t}\n\t\ttime.Sleep(time.Second)\n\t}\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedorlap2006%2Fdisgolf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedorlap2006%2Fdisgolf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedorlap2006%2Fdisgolf/lists"}