Added .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:
Kwoth
2024-10-28 08:17:15 +00:00
parent 85c525e19b
commit 07cef3eb5e
23 changed files with 7954 additions and 86 deletions

View File

@@ -4567,4 +4567,70 @@ leaveunkeptservers:
- shardId:
desc: "Shard id from which to start leaving unkept servers."
- delay:
desc: "Delay in miliseconds between leaves"
desc: "Delay in miliseconds between leaves"
ncanvas:
desc: |-
Shows the current nCanvas.
The canvas allows users to set each pixel's color and text using currency.
ex:
- ''
params:
- { }
nczoom:
desc: |-
Zooms in on the nCanvas.
Bot will show the 10x10 grid with the position of each cell for use with `ncset`.
You can either use alphanumeric position (ex. s4u) or pixel x and y (ex. 123 123)
ex:
- 'sgu'
- '123 123'
params:
- position:
desc: "The position of the pixel to set in alphanumeric format."
- position:
desc: "The position of the pixel to set in pixel x and y format."
ncsetpixel:
desc: |-
Sets a pixel's color and text on the nCanvas.
You must specify the position of the pixel to set in alphanumeric format.
You can obtain alphanumeric position of the pixel by using `nczoom` or `ncp <x> <y>`
ex:
- 'sgu #ff0000 Some text'
params:
- position:
desc: "The position of the pixel to set in alphanumeric format."
- color:
desc: "The color of the pixel to set in HEX."
- text:
desc: "The optional text to set on the pixel."
ncsetimg:
desc: |-
Attach the image to the message sending the command to overwrite the nCanvas with it.
All prices and colors will be reset.
The image must be equal to the size of the nCanvas (default is 500x350)
This command is dangerous and irreversible.
ex:
- ''
params:
- { }
ncpixel:
desc: |-
Shows the pixel at the specified position.
You can get pixel positions by using `nczoom`
ex:
- 'sgu'
- '123 123'
params:
- position:
desc: "The position of the pixel to retrieve in alphanumeric format."
- position:
desc: "The position of the pixel to retrieve in pixel x and y format."
ncreset:
desc: |-
Clears the nCanvas.
All prices and colors will be reset.
This command is dangerous and irreversible.
ex:
- ''
params:
- { }