{"id":18572711,"url":"https://github.com/botblock/golist","last_synced_at":"2025-07-07T08:09:50.697Z","repository":{"id":57568325,"uuid":"342566291","full_name":"botblock/golist","owner":"botblock","description":"A GoLang library for posting server count to the BotBlock API. [GoLang - Maintained @scientific-dev]","archived":false,"fork":false,"pushed_at":"2021-03-16T05:34:45.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T23:11:15.648Z","etag":null,"topics":["botblock","golang","golist","wrapper"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/botblock/golist","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/botblock.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":"2021-02-26T12:15:51.000Z","updated_at":"2022-01-24T15:13:32.000Z","dependencies_parsed_at":"2022-08-28T10:01:36.685Z","dependency_job_id":null,"html_url":"https://github.com/botblock/golist","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/botblock/golist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2Fgolist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2Fgolist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2Fgolist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2Fgolist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botblock","download_url":"https://codeload.github.com/botblock/golist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2Fgolist/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264040940,"owners_count":23548070,"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":["botblock","golang","golist","wrapper"],"created_at":"2024-11-06T23:07:00.225Z","updated_at":"2025-07-07T08:09:50.626Z","avatar_url":"https://github.com/botblock.png","language":"Go","readme":"# Golist\n\nGolist is an easy to use botblock api wrapper written in golang!\n\n## Installation\n\n```\ngo get github.com/botblock/golist\n```\n\n## Getting started\n\nYou can view the basic documentation of the package at [pkg.go.dev](https://pkg.go.dev/github.com/botblock/golist)!\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/botblock/golist\"\n)\n\nfunc main(){\n    client := golist.Client{\n        map[string]string{\n            \"botsfordiscord.com\": \"token\",\n            \"top.gg\": \"token\",\n        }\n    }\n\n    res, err := client.PostStats(\"bot id\", golist.Stats{\n        ServerCount: 20,\n    })\n\n    if err != nil{\n        fmt.Println(err.Error())\n    } else {\n        fmt.Println(res)\n    }\n}\n```\n\n### Creating a client with default properties\n\n```go\nclient := golist.NewClient() // This method returns the Client struct with default properties!\nclient.AddToken(\"top.gg\", \"token\")\n\nres, err := client.PostStats(\"bot id\", golist.Stats{\n    ServerCount: 20,\n})\n\nif err != nil{\n    fmt.Println(err.Error())\n} else {\n    fmt.Println(res)\n}\n```\n\n### Post Stats\n\n```go\nres, err := client.PostStats(\"bot id\", golist.Stats{\n    ServerCount: 20,\n    ShardID: 123,\n    ShardCount: 1,\n    Shards: []int64{1, 2, 3, 4},\n}) // Post stats and returns PostResponse struct!\n```\n\n### Get Bot\n\n```go\nbot, err := client.GetBot(\"bot id\") // Returns the bot information\n```\n\n### Get lists\n\n```go\nlists, err := client.GetAllLists() // Returns an map of key with botlist id and value with list\nlist, err := client.GetList(\"list id\"); // Return one paticualr list by id\nids, err := client.GetLegacyIDS(); // Returns the legacy ids of botlists registered on botblock\n```\n\n## Support and Issues\n\nIncase, if you have any kind of doubt in using this package, open an issue in the github repo! This project is license under MIT License!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotblock%2Fgolist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotblock%2Fgolist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotblock%2Fgolist/lists"}