Skip to content

acikek/Owop.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Owop.NET

Owop.NET is an asynchronous .NET library for interfacing with OurWorldOfPixels (OWOP). It follows in the footsteps of projects such as OWOP.js and is designed for easily creating OWOP bots.

Example

using Microsoft.Extensions.Logging;
using Owop.Client;

// Create our client instance
using var client = IOwopClient.Create();

// Fires when our client connects to the world
client.Connected += args =>
{
    args.World.Logger.LogInformation($"Connected as ID {args.World.ClientPlayer.Id}");
};

// Fires when another player uses the /tell command on us
client.Tell += async msg =>
{
    await msg.Player.Tell($"Hello from {msg.World.Name}!");
};

// Connect to a world!
// World name defaults to "main" if none is provided
await client.Connect(options: new ConnectionOptions
{
    Nickname = "MyFirstBot"
});

About

Unofficial .NET wrapper and extreme convenience library for OWOP (https://ourworldofpixels.com/)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages