Nerd Category Commands

These are some commands, some useful, some less so, but mostly for nerds.


+showcolour [5/20s]

"posts an image showing a colour"

This command takes 1 or many colours and produces an image showing you what those colours are.
For single colours, the command can take a named colour

+showcolour 'name'
Gets a single colour by name. Name is the colour to show.
+showcolour '#RRGGBB' [...]
Shows one or many colours. #RRGGBB is the hexadecimal code of the colour to post.

+colourname [5/20s]

"gets the closest xkcd colour to a given #RRGGBB code"

This command scans the xkcd colour chart and finds the closest named colour to a given value.
It also shows how close the two values are.

Usage:
+colourname '#RRGGBB'
#RRGGBB is a hexadecimal colour code.

+mycol

"gets your newcol role colour"

In +welcome for role=newcol, instead of being given a purely random colour, you'll be given a colour that is determined from your account's ID.

The general gist of it is that a colour can be generated from the digits in a Unix timestamp, and Discord IDs use whats called "snowflake" meaning your ID is directly derived from when your account was created.

time ← member.created_at.as_unix_time
timestamp ← time.to_hex
digits ← timestamp.pad_left(with=0, to=10).toarray // Gets a 10 digit number
indexes ← time.substr(start=time.length - 6, end=6) // Gets the last 6 digits
output ← ""
for each number in indexes
    output ← output + digits[number]
endfor
Usage:
+mycol

+brainfuck

"makes me evaluate brainfuck statements"

Brainfuck is an esoteric programming language that uses only 8 different symbols to code with.

Brainfuck uses a (theoretically) infinitely length tape with a pointer on one end.
The cell under the pointer can be incremented, decremented or printed.

Here is a reference sheet:
> Move the pointer right.
< Move the pointer left.
+ Increment the value at the pointer.
- Decrement the value at the pointer.
[ Skip to the matching ] if the value at the pointer is 0.
] Jump back to the matching [.
. Copy the value at the pointer to the output stream.
, Copy the next letter from the input stream into the cell at the pointer.

Usage
+brainfuck 'code' ['input']
Runs code. Code is the code to run, input is the input stream if required.
+brainfuck ref
Posts a reference sheet.

+xsend

"embeds a message in a channel"

This sends an embedded message into a different channel on the server.

By default, a user can only xsend to a channel they can both see and send to.
Adding allow xsend to the channel topic will remove the second restriction, meaning the member only has to see the channel.

Reminder since this comes up a lot. You can use +toggle to disable this command.

Usage:
+xsend 'channel' 'message' ['#RRGGBB']
Channel is the channel to send to, message is what to send.
#RRGGBB is the colour of the embed that will be sent.

+scale [1/60s]

"because I'm a large robot"

This command posts a number of stats about the bot and some relevant comparisons

Usage:
+scale

+do [Buds] [1/10s]

"repeats a function"

This command repeats a different command a given number of times.

With regards to ratelimits, logging, stats and spamlimits.

Usage:
+do 'count' 'command'
Count is the number of repeats, command is what to call. You do not need the call char.
<user> +do 6 random number 10
<42> 7
<42> 10
<42> 3
<42> 9
<42> 4
<42> This command has a ratelimit that you have already reached.

+irc [3/30s]

"fetches a random quote from bash.org"

This command fetches a random IRC chatlog from bash.org.
The log will always be less than 2000 characters and will always have a positive score.

This command may return some questionable results. squas and the bot will not be held responsible for what is pulled.

Usage:
+irc

+colourstats [Server Admin]

"counts the members in each colourme role"

Gets the number of members in each colourme. This doesn't count the members true colour, just their colourme role.

Usage:
+colourstats

Return to top.