{"id":18572718,"url":"https://github.com/botblock/botlist","last_synced_at":"2025-07-31T08:04:25.483Z","repository":{"id":98785906,"uuid":"195917029","full_name":"botblock/BotList","owner":"botblock","description":"A package for easily updating your server count on all Discord bot lists. [JavaScript - maintained by @PassTheMayo]","archived":false,"fork":false,"pushed_at":"2019-10-28T04:32:09.000Z","size":6,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T20:45:24.362Z","etag":null,"topics":["bot","discord","list","servers"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/botlist","language":"JavaScript","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-09T02:23:18.000Z","updated_at":"2023-08-14T01:12:56.000Z","dependencies_parsed_at":"2023-05-25T08:46:34.713Z","dependency_job_id":null,"html_url":"https://github.com/botblock/BotList","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/botblock/BotList","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2FBotList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2FBotList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2FBotList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2FBotList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botblock","download_url":"https://codeload.github.com/botblock/BotList/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botblock%2FBotList/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268009713,"owners_count":24180458,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","discord","list","servers"],"created_at":"2024-11-06T23:07:01.898Z","updated_at":"2025-07-31T08:04:25.475Z","avatar_url":"https://github.com/botblock.png","language":"JavaScript","readme":"# BotList\nA package for easily updating your server count on all Discord bot lists.\n\n## Getting Started\nTo install the package, you can simply run `npm i botlist` in your bot directory. After the installation is complete, you can append the code below to your bot, which you may need to modify depending on the structure of your bot.\n\n```js\nconst BotList = require('botlist');\n\nconst botID = 'xxx';\n\nconst client = new BotList.Client(botID, {\n    tokens: {\n        'botlist.space': 'xxx',\n        'botsfordiscord.com': 'xxx',\n        'bots.ondiscord.xyz': 'xxx',\n        'botsparadiscord.xyz': 'xxx',\n        'carbonitex.net': 'xxx',\n        'dankbotlist.com': 'xxx',\n        'discordapps.dev': 'xxx',\n        'discord.boats': 'xxx',\n        'discordbots.org': 'xxx',\n        'discordbotlist.com': 'xxx',\n        'discordbotreviews.xyz': 'xxx',\n        'discordbot.world': 'xxx',\n        'discord.bots.gg': 'xxx',\n        'discordbotslist.us.to': 'xxx',\n        'discordbots.group': 'xxx',\n        'discord.services': 'xxx',\n        'discordsbestbots.xyz': 'xxx',\n        'discordbots.fun': 'xxx',\n        'divinediscordbots.com': 'xxx',\n        'lbots.org': 'xxx',\n        'mythicalbots.xyz': 'xxx',\n        'wonderbotlist.com': 'xxx',\n        'botlist.co': 'xxx',\n        'thereisabotforthat.com': 'xxx'\n        // You can append more tokens here if more bot list websites exist on BotBlock\n    },\n    interval: 1000 * 30, // The interval (in milliseconds) to post to every list\n    verbose: false // Logs posting errors to console\n});\n\nclient.on('beforePost', () =\u003e {\n    // This event will be fired every interval that is defined in the client constructor. If the client isn't ready yet, you can simply return before calling Client#update(). This will send the previous server/shard count instead.\n    \n    if (!bot.ready) return;\n\n    const serverCount = bot.guilds.size;\n    const shards = bot.shards.size;\n\n    client.update(serverCount, shards); // Instead of `shards` being a number, you can use the following format to post from an individual shard instead (count means server count from this shard): { id: 0, count: 25 }\n});\n\nclient.on('afterPost', (successful, failed) =\u003e {\n    console.log('Just finished posting to all bot lists, ' + successful + ' were successful, ' + failed + ' failed to post');\n});\n\nclient.on('error', (error) =\u003e {\n    // There was an error posting to one of the lists, the `error` variable will provide details from the node-fetch package about the error.\n\n    console.warn('Something happened', error);\n});\n\n// Once the bot is ready, you can call this function to start the interval loop.\nclient.start();\n\n// If the bot disconnects, you can call this to stop it from running.\nclient.stop();\n```\n\n## Documentation\nThere is no documentation because the code above is thoroughly documented using comments. If you need any assistance, you can join our *makeshift* support server: [https://discord.gg/GjEWBQE](https://discord.gg/GjEWBQE).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotblock%2Fbotlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotblock%2Fbotlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotblock%2Fbotlist/lists"}