Skip to main content

Revolt.Net

Check here for a quick example bot with commands set up.

Minimal Example​

This example connects via websocket and logs received messages.

using Revolt; // Install Revolt.Net from NuGet 

var client = new RevoltClient();
await client.LoginAsync(TokenType.Bot, "");
client.OnReady += async () => { Console.WriteLine("Ready!"); };
client.MessageReceived += async msg => Console.WriteLine($"{msg.Author.Username}: {msg.Content}");
await client.ConnectWebSocketAsync();

// prevent the program exiting
await Task.Delay(-1);