botlist.space
2.1.0
dotnet add package botlist.space --version 2.1.0
NuGet\Install-Package botlist.space -Version 2.1.0
<PackageReference Include="botlist.space" Version="2.1.0" />
paket add botlist.space --version 2.1.0
#r "nuget: botlist.space, 2.1.0"
// Install botlist.space as a Cake Addin
#addin nuget:?package=botlist.space&version=2.1.0
// Install botlist.space as a Cake Tool
#tool nuget:?package=botlist.space&version=2.1.0
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- Newtonsoft.Json (>= 12.0.1)
- RateLimiter (>= 1.1.1)
- System.Net.WebSockets (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|