Boticord.Net
v1.1.0Latest Stable
net6.0
API Wrapper for Boticord API v2 written in C# Docs https://alxelzot.gitbook.io/boticord.net/
Published
Jul 2, 2022
4y ago
Total Downloads
3.2K
3,171
Install
dotnet add package Boticord.Net --version 1.1.0
| Product | Versions |
|---|---|
| .NET |
README

Installation
Package Manager
Install-Package Boticord.Net -Version 1.1.0
dotnet add package Boticord.Net --version 1.1.0
Useful Links
Example usage
This example uses Discord.Net to run discord bot
using Discord.WebSocket;
using Discord;
using Boticord.Net;
var boticordClient = new BoticordClient(new BoticordConfig
{
Token = "boticord token here"
});
var botClient = new DiscordSocketClient();
botClient.Ready += BotReady;
botClient.Log += BotLog;
await botClient.LoginAsync(TokenType.Bot, "bot token here");
await botClient.StartAsync();
await Task.Delay(-1);
async Task BotReady()
{
Console.WriteLine($"Logged into {botClient.CurrentUser}");
_ = Task.Run(() => AutoUpdateBotStatus());
}
async Task AutoUpdateBotStatus()
{
var timer = new PeriodicTimer(TimeSpan.FromMinutes(1));
while (true)
{
await boticordClient.SendBotStatsAsync((uint)botClient.Guilds.Count,
users: (uint)botClient.Guilds.Select(x => x.MemberCount).Sum());
await timer.WaitForNextTickAsync();
}
}
async Task BotLog(LogMessage message)
{
Console.WriteLine(message.Message);
}
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.