Skip to content

C# lib that allows you to post your bots server count to all of the Discord bot lists.

License

Notifications You must be signed in to change notification settings

botblock/BotListAPI

Repository files navigation

BotListAPI

This is a C# lib that allows you to post your bots server count to all of the Discord bot lists.

If you have any issues/suggestions post an issue here, join my Discord or contact me BuilderB#0001

Features

Please see at the bottom of this README for the todo list

  • Diffrent logtypes (none, error only, info, debug)
  • 17 Bot lists supported
  • Supports normal and sharded bots
  • Supports .NET Framework and .NET Core
  • Manually trigger posting
  • Automatically post server count every 10 minutes

How to use

Install the NuGet package here https://www.nuget.org/packages/BotListAPI

Create a new instance of BotListAPI.ListClient

It is encouraged to not put tokens in this and instead load a file with the tokens incase you leak all your tokens

ListClient = new ListClient(_Client, new ListConfig{ArcaneBotList = "", BotListSpace = "", BotsOnDiscord = "", BotsForDiscord = "", CloudBotList = "", DiscordBoats = "", DiscordBots = "", DiscordApps = "", DiscordBotWorld = "", DiscordBotListv2 = "", DiscordExtremeList = "", DivineBotList = "", LBots = "", MythicalBots = "", TopGG = "", YetAnotherBotList = "", WonderBotList = "" ); 

You can manually trigger posting using ListClient.ListType.DiscordBots.Post();

Or you can automatically post it using the a background task (every 10 minutes)

ListClient.Start();

This stops the background task

ListClient.Stop();