A bot for the TBGs, round 2
All command names are case-insensitive.
nh!coin
- Considered very compatible.
- When forking, it's recommended you keep this command.
Flips a coin and gives you the result.
nh!{dice|roll} num sides
- num (int >=1): The number of dice. Defaults to 1.
- sides (int >=1): The number of sides on the dice. Defaults to 20.
- Considered very compatible.
- When forking, it's recommended you keep this command.
Rolls num sides-sided dice, and gives you the result.
nh!{bot|botinfo}
- Considered somewhat compatible.
Returns various statistics about the bot.
nh!help
- Considered somewhat compatible.
Returns a list of the commands Nihonium supports.
nh!suggest *suggestion
- *suggestion (str, allows spaces): The suggestion you want to make.
- When forking, it's recommended you consider whether to keep or remove this command.
Make a suggestion on what to add to Nihonium.
nh!threadInfo
- Considered not compatible.
- When forking, it's recommended you consider whether to keep or remove this command.
Returns a list of various information about the thread the command was called in.
nh!text command filename *other
- command (str, no spaces): The subcommand to use. Defaults to read.
- filename (filename, no extension): The file to use. Defaults to _.
- *other (varies): Varies by subcommand. May be optional.
- When forking, it's recommended you consider whether to keep or remove this command.
A set of subcommands for manipulating text files.
Commands:
read
Read the contents of the file. *other is unused.
write
- *content (str, allows spaces): What to write to the file.
Write to the file, overriding whatever was present before.
append
- *content (str, allows spaces): What to append to the file.
Append to the end of file. Adds no spacing. Due to the way it's implimented, creates the file if it doesn't already exist.
appendline
- *content (str, allows spaces): What to append to the file.
- When forking, it's recommended you consider whether to keep or remove this command.
Acts like append, but adds a newline before *content.
insert
- char (int >=0): Where to insert *content before.
- *content (str, allows spaces): What to insert into the file.
Insert *content into the file before the position specified by char.
create
Create the file if it doesn't already exist. *other is unused.
duplicate
Duplicate the file. The new file is named "copy_filename". *other is unused.
delete
Delete the file. *other is unused.
nh!{files|file} command filename *other
- command (str, no spaces): The subcommand to use. Defaults to read.
- filename (filename, requires extension): The file to use. Defaults to _.txt.
- *other (varies): Varies by subcommand. May be optional.
- When forking, it's recommended you consider whether to keep or remove this command.
A set of subcommands for manipulating files.
Commands:
read
Read the contents of the file with a hex viewer. *other is unused.
list
List all files. *other and filename are both unused.
nh!estimate tID
- tID (int): The thread you want an estimation for. Defaults to the current thread.
- Considered not compatible.
- When forking, it's recommended you consider whether to keep or remove this command.
Give an estimation on when a thread will be completed. Not available on some threads.
nh!{rolladice|rolldice} action
- action (str): What action you want to perform. Defaults to "roll".
- When forking, it's recommended you consider whether to keep or remove this command.
Roll a dice and gain (or lose, or steal) points. Exclusive to TGOHNRADFYASWH.
Actions:
roll
Roll a dice. Can only be used up to 5 times in one parse cycle.
{points|score|check}
Shows you how many points you have.
{scoreboard|leaderboard|scores}
Displays a scoreboard.
nh!{choose|choice} *options
- *options (multi_str): The options to choose from, seperated by spaces.
Select from multiple choices. If you want to preserve spaces... try something other than U+0020 SPACE or U+00A0 NON-BREAKING SPACE?