You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
3.7 KiB

4 years ago
# Areia_Message_Gagger
Add, remove, enable, and disable gags easily
# General Overview
This plugin is intended to simplify the process of handling simple gag triggers. Say you're headed on an epic run. You don't really want to see messages about experience gained or gold shared. Say you're pupping/leveling in a well-known zone and don't want to see all the damage messages the mobs spam you with.
4 years ago
4 years ago
With this plugin, you can easily create groups of related messages and turn them on or off without having to open and search through your triggers menu.
4 years ago
4 years ago
By default, you enter regular expressions that match the lines you want to gag. However, there is also an option to simplify that portion, allowing you to enter plain text with simple * wildcards if you're not comfortable using regex.
# Commands
# amg restoredefault [confirm]
Restores the plugin to its default state. ***Note: this will permanently delete
all messages you have added and revert all changes you have made. Be certain
this is what you want before adding the 'confirm' argument.
# amg count
Displays a brief count of the number of enabled messages and groups.
4 years ago
# amg show [<group name> [<message name>]]
4 years ago
Displays info on the requested group or message. 'Amg show' on its own gives a
list of all groups along with an indication of whether each group is enabled or
4 years ago
disabled currently. 'Amg show <group>' will display all messages within that
4 years ago
group, along with an indication of its enabled status and a peek at its match
4 years ago
string. To see a message's full regex, enter 'amg show <group> <message>'.
4 years ago
4 years ago
# amg <enable|disable> [<group name> [<message name>]]
Enables or disables the given group or message. 'amg <en|dis>able' on its own
4 years ago
will enable/disable all groups. To enable/disable a single group, use
4 years ago
'amg <en|dis>able <group>', and to enable/disable only a single particular
message, enter 'amg <en|dis>able <group> <message>'.
4 years ago
4 years ago
# amg add <group name> <message name> <match string>
4 years ago
Adds a new message to be gagged. All arguments are required. The message will
4 years ago
be given the name <message name>, added to the group called <group name> (which
4 years ago
will be created if it does not exist), and will gag the line described by
4 years ago
<match string>. The match string should be a regular expression. Group and
4 years ago
message names may contain only letters, numbers, and underscores.
4 years ago
# amg edit <group name> <message name> <name|group|match> <value>
Changes the given field of the nominated message. <Value> is the value you wish
4 years ago
to assign to the field. For example, to change the name of the sanc message in
the spellup group to 'sanctuary', enter 'amg edit spellup sanc name sanctuary'.
Assigning a group name that does not already exist will create a new group;
likewise, if a group is left empty by this operation, it will be removed.
4 years ago
# amg remove <group name> [<message name>] [confirm]
4 years ago
Removes the given group or message. If only a group name is given, all messages
in that group will be deleted. Note that this cannot be reversed, so be certain
you have the correct group and message names before adding the 'confirm'
argument.
# amg regex [on|off]
Choose the method in which the plugin will receive and display match strings.
Default is on, which means you should enter and will see regular expressions.
That method is more powerful but also more complicated. Turning regex off will
allow you to enter simple strings for your gag triggers. You may use '*' as a
wildcard, and '\\*' to match a literal '*' (e.g., '* waves at you.' would gag
any line where Jo, or Bob, or anyone else waves at you).
# amg update
Check for and install updates to the plugin.