{"id":28471176,"url":"https://github.com/top-gg-community/ruby-sdk","last_synced_at":"2025-07-01T21:32:40.058Z","repository":{"id":62559276,"uuid":"381102989","full_name":"Top-gg-Community/ruby-sdk","owner":"Top-gg-Community","description":"A ruby library for the top.gg api","archived":false,"fork":false,"pushed_at":"2021-11-08T04:48:13.000Z","size":124,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T04:58:30.150Z","etag":null,"topics":["api","bot","dbl","discordbotlist","ruby","topgg"],"latest_commit_sha":null,"homepage":"https://rubydoc.info/gems/topgg/","language":"Ruby","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/Top-gg-Community.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-06-28T16:55:21.000Z","updated_at":"2024-12-19T17:34:33.000Z","dependencies_parsed_at":"2022-11-03T11:15:48.326Z","dependency_job_id":null,"html_url":"https://github.com/Top-gg-Community/ruby-sdk","commit_stats":null,"previous_names":["rhydderchc/topgg-ruby","top-gg-community/ruby-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Top-gg-Community/ruby-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Top-gg-Community%2Fruby-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Top-gg-Community%2Fruby-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Top-gg-Community%2Fruby-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Top-gg-Community%2Fruby-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Top-gg-Community","download_url":"https://codeload.github.com/Top-gg-Community/ruby-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Top-gg-Community%2Fruby-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263039414,"owners_count":23404177,"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","bot","dbl","discordbotlist","ruby","topgg"],"created_at":"2025-06-07T10:30:39.065Z","updated_at":"2025-07-01T21:32:39.990Z","avatar_url":"https://github.com/Top-gg-Community.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Top.gg](https://top.gg) Ruby\n\nThe Top.gg Ruby SDK is a lighweight package, that allows you \nto fetch data from the top.gg api and post data such as statistics to the website.\n\nIt provides you with numerous methods to interact with the API.\n## Dependencies\n\n* Ruby \n\n## Installation\n\n``` bash\n\ngem install topgg\n\n```\n## Note\n\nYou require a Token to interact with the Api.\nThe token can be found at `https://top.gg/bot/[YOUR_BOT_ID]/webhooks` \n\n## Example\n\nHere's a straightforward example of how to request data with the wrapper.\n\n```ruby\nrequire 'topgg'\n\nclient = Topgg.new(\"AUTH_TOKEN\", \"BOTID\")\n\nclient.get_bot(\"1234\").defAvatar\n# returns\n# \"6debd47ed13483642cf09e832ed0bc1b\"\n\n```\n### Auto Posting\n\nThe library provides you with autoposting functionality, and autoposts at an interval of 30 minutes.\nHere's how you can use it\n\n```ruby\nrequire 'topgg'\nrequire 'discordrb'\n\nbot = Discordrb::Bot.new token: \"TOKEN\"\n\nclient = Topgg.new(\"AUTH_TOKEN\", \"BOTID\")\n bot.ready do |event|\n client.auto_post_stats(bot) # The discordrb bot client.\nend\nbot.run\n```\n\n# Documentation\n\nCheck out the api reference [here](https://rubydoc.info/gems/topgg/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftop-gg-community%2Fruby-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftop-gg-community%2Fruby-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftop-gg-community%2Fruby-sdk/lists"}