botlist.space 2.1.0

A completely async wrapper for the botlist.space api.

Install-Package botlist.space -Version 2.1.0
dotnet add package botlist.space --version 2.1.0
<PackageReference Include="botlist.space" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add botlist.space --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

C# botlist.space wrapper

BSClient

Create an instance of BSClient like the following

var client = new BSClient(new BSConfiguration("yourUserToken", "yourBotToken"));

From here on you can just use IntelliSense to check out all super powers you got now

Gateway

Create an instance of BSGateway like the following

var gateway = new BSGateway(new[]{"yourBotTokens"});
// Then initialize this gateway
await gateway.Initialize();

Then you can hook into the events

BSGateway#OnPageView
BSGateway#OnBotInvite
BSGateway#OnBotUpvote

and do whatever you want with the provided data

For additional information you can hook into the event

BSGateway#Log
// and then patternmatch
BSLogArgs#Data

Webhook

First of all you need to enable the webhook listener in the BSConfiguration and set webhook port and threads

var client = new BSClient(new BSConfiguration("yourUserToken", "yourBotToken", receiveWebhooks: true){WebhookPort = 8080, WebhookThreads = 2});

Then you can just hook into the BSClient#OnUpvote event and use IntelliSense

#Note
Make sure to open ports e.g.
I would not recommend the webhook, just use the gateway instead.

C# botlist.space wrapper

BSClient

Create an instance of BSClient like the following

var client = new BSClient(new BSConfiguration("yourUserToken", "yourBotToken"));

From here on you can just use IntelliSense to check out all super powers you got now

Gateway

Create an instance of BSGateway like the following

var gateway = new BSGateway(new[]{"yourBotTokens"});
// Then initialize this gateway
await gateway.Initialize();

Then you can hook into the events

BSGateway#OnPageView
BSGateway#OnBotInvite
BSGateway#OnBotUpvote

and do whatever you want with the provided data

For additional information you can hook into the event

BSGateway#Log
// and then patternmatch
BSLogArgs#Data

Webhook

First of all you need to enable the webhook listener in the BSConfiguration and set webhook port and threads

var client = new BSClient(new BSConfiguration("yourUserToken", "yourBotToken", receiveWebhooks: true){WebhookPort = 8080, WebhookThreads = 2});

Then you can just hook into the BSClient#OnUpvote event and use IntelliSense

#Note
Make sure to open ports e.g.
I would not recommend the webhook, just use the gateway instead.

GitHub repositories (0)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.1.0 184 4/5/2019
2.0.1 202 1/2/2019
2.0.0 189 1/2/2019
1.0.0 194 10/26/2018