{"id":13306301,"url":"https://github.com/itschip/guildedgo","last_synced_at":"2025-04-12T22:12:23.923Z","repository":{"id":57661622,"uuid":"473323326","full_name":"itschip/guildedgo","owner":"itschip","description":"Guilded.gg Go Api client","archived":false,"fork":false,"pushed_at":"2023-11-19T20:52:01.000Z","size":104,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T22:11:54.912Z","etag":null,"topics":["api","golang","guilded","guilded-api","guilded-bot","guildedgg"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/itschip/guildedgo","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/itschip.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}},"created_at":"2022-03-23T19:04:51.000Z","updated_at":"2025-03-23T14:19:49.000Z","dependencies_parsed_at":"2023-11-19T21:53:45.111Z","dependency_job_id":null,"html_url":"https://github.com/itschip/guildedgo","commit_stats":null,"previous_names":["derletzteritter/guildedgo","itschip/guildedgo"],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fguildedgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fguildedgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fguildedgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fguildedgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itschip","download_url":"https://codeload.github.com/itschip/guildedgo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637771,"owners_count":21137538,"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":["api","golang","guilded","guilded-api","guilded-bot","guildedgg"],"created_at":"2024-07-29T17:57:12.655Z","updated_at":"2025-04-12T22:12:23.895Z","avatar_url":"https://github.com/itschip.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# guildedgo\n\nA guilded.gg library in Go\n\n## Getting started\n\n```cmd\ngo get github.com/itschip/guildedgo\n```\n\n## Examples\n\n### Listen to events\n\n```go\npackage main\n\nimport (\n        \"fmt\"\n\n        \"github.com/itschip/guildedgo\"\n)\n\nfunc main() {\n        guildedClient := guildedgo.NewClient(\u0026guildedgo.Config{\n                Token:    \"YOUR_TOKEN\",\n                ServerID: \"YOUR_SERVER_ID\",\n        })\n\n        // Listen to the ChatMessageCreated event\n        guildedClient.On(\"ChatMessageCreated\", func(client *guildedgo.Client, v any) {\n                data, ok := v.(*guildedgo.ChatMessageCreated)\n\n                if ok {\n                        fmt.Println(data.Message.Content)\n\n                        if data.Message.Content == \"!ping\" {\n                                guildedClient.Channel.SendMessage(data.Message.ChannelID, \u0026guildedgo.MessageObject{\n                                        Content: \"pong!\",\n                                })\n                        }\n\n                }\n        })\n\n        // Open socket\n        guildedClient.Open()\n}\n```\n\n### Command builder\n\n```go\nserverID := internal.GetEnv(\"SERVER_ID\")\n\ttoken := internal.GetEnv(\"TOKEN\")\n\n\tconfig := \u0026guildedgo.Config{\n\t\tServerID: serverID,\n\t\tToken:    token,\n\t}\n\n\tc := guildedgo.NewClient(config)\n\n\tcommands := \u0026guildedgo.CommandsBuilder{\n\t\tCommands: []Command{\n\t\t\t{\n\t\t\t\tCommandName: \"!test\",\n\t\t\t\tAction: func(client *Client, v *ChatMessageCreated) {\n\t\t\t\t\tclient.Channel.SendMessage(v.Message.ChannelID, \u0026MessageObject{\n\t\t\t\t\t\tContent: \"Test\",\n\t\t\t\t\t})\n\n\t\t\t\t\tfmt.Println(\"Test working\")\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tCommandName: \"!party\",\n\t\t\t\tAction: func(client *Client, v *ChatMessageCreated) {\n\t\t\t\t\tclient.Channel.SendMessage(v.Message.ChannelID, \u0026MessageObject{\n\t\t\t\t\t\tContent: \"Yeah!!! Let's party\",\n\t\t\t\t\t})\n\n\t\t\t\t\tfmt.Println(\"Party working\")\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\n\tc.CommandService.AddCommands(commands)\n\n\tc.Open()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitschip%2Fguildedgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitschip%2Fguildedgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitschip%2Fguildedgo/lists"}