.nc and related commands.

You can set pixel colors (and text) on a 500x350 canvas, pepega version of r/place
You use currency to set pixels.
see whole canvas: .nc
set pixel: .ncsp <pos> <color> <text?>
get pixel: .ncp <pos>
zoom: .ncz <pos> or .ncz x y
This commit is contained in:
Toastie 2024-10-29 12:44:28 +13:00
parent 448624e543
commit 7cd0026c3e
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
22 changed files with 7955 additions and 86 deletions
src/EllieBot/Db

View file

@ -73,6 +73,16 @@ public abstract class EllieContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
#region NCanvas
modelBuilder.Entity<NCPixel>()
.HasAlternateKey(x => x.Position);
modelBuilder.Entity<NCPixel>()
.HasIndex(x => x.OwnerId);
#endregion
#region QUOTES
var quoteEntity = modelBuilder.Entity<Quote>();