An update to the Random Tables Bot
Tags allow you to add properties to entries and table. This could be used to, say, add stats to an entry, identify tables for easy referencing (see ".viewall by" under bonus features below).
Rules of tags
-A tag is made up of two parts: the tag name, and the tag content.
-The bot doesn't look at tag content, even for Tags of Power (see below), the bot only checks if the tag name is present. You can leave the tag content field blank if you so choose, it is not required to process the command.
-If a table/entry already has a tag, and you apply a tag with the same name, the tag's content will be replaced with the new content. Additionally, if you replace a tag using this method but have the content = "delete", the tag will be removed.
-Only a entry/table's creator or a server mod can apply/replace/remove tags to said entry/table.
.tagtable: applies a tag to a table or replace an existing tag. syntax: ".tagtable [tableid] [tag name] [tag content]"
.tagentry: applies a tag to an entry or replace an existing tag. syntax: ".tagentry [tableid] [entrynumber] [tag name] [tag content]"
.tagall: applies/replaces tags for every entry in a table. syntax: ".tagall [tableid] [tag name] [tag content]"
Tags of Power
The following tags will change how the bot functions regarding the tagged entry.
nocaps: if an entry contains this tag, any other table entries this table references will not contain capitalizations.
nopunct: if an entry contains this tag, any other table entries this table references will not contain punctuation.
Following the .viewall command with "by [tagname]" will bring up a list of all tables that contain this specific tag. .syntax ".viewall by [tagname]"
Using "random" as the table in the .roll command will roll a randomly selected result from a randomly selected table. syntax: ".roll random"