RevSharp.Core
1.0.8
dotnet add package RevSharp.Core --version 1.0.8
NuGet\Install-Package RevSharp.Core -Version 1.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RevSharp.Core" Version="1.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RevSharp.Core --version 1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RevSharp.Core, 1.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RevSharp.Core as a Cake Addin #addin nuget:?package=RevSharp.Core&version=1.0.8 // Install RevSharp.Core as a Cake Tool #tool nuget:?package=RevSharp.Core&version=1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RevSharp
A C# Library for the FOSS chat platform Revolt with portability in mind.
Xenia uses this library. You can view the README here
To add RevSharp to your project, you can install via the RevSharp.Core
package or with the following command;
dotnet add package RevSharp.Core
Example
using RevSharp.Core;
using RevSharp.Core.Models;
public static class Program
{
public static void Main(string[] args)
=> AsyncMain(args).Wait();
public static async Task AsyncMain(string[] args)
{
// Get token and initialize client
string token = Environment.GetEnvironmentVariable("REVSHARP_TOKEN");
var client = new Client(token, true);
// Login to Revolt server
await client.LoginAsync();
// Handle message events
client.MessageReceived += Client_MessageReceived;
// Infinitely wait.
await Task.Delay(-1);
}
private static void Client_MessageReceived(Message message)
{
if (message.Content == "ping")
{
message.Reply("pong!").Wait();
}
}
}
Environment Variables
Name | Type | Default Value | Description |
---|---|---|---|
REVSHARP_LOG_COLOR |
boolean | true |
Custom color for log output. Anything other than true will disable the log color. |
REVSHARP_DEBUG_WSLOG |
boolean | false |
Display extended Websocket debug logs |
REVSHARP_LOGFLAG |
int | 30 |
Log flags. See RevSharp.Core.LogFlags for values |
You can view all RevSharp environment variables at RevSharp.Core.FeatureFlags
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- kate.shared (>= 1.0.4)
- Macross.Json.Extensions (>= 3.0.0)
- MimeTypeMapOfficial (>= 1.0.17)
- Newtonsoft.Json (>= 13.0.3)
- System.Threading.RateLimiting (>= 7.0.0)
- Ulid (>= 1.2.6)
- Websocket.Client (>= 4.6.1)
-
net7.0
- kate.shared (>= 1.0.4)
- Macross.Json.Extensions (>= 3.0.0)
- MimeTypeMapOfficial (>= 1.0.17)
- Newtonsoft.Json (>= 13.0.3)
- System.Threading.RateLimiting (>= 7.0.0)
- Ulid (>= 1.2.6)
- Websocket.Client (>= 4.6.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.