How to change MOTD, rules, FAQ?Under
!sethelp command you can find commands that will allow you to add and modify texts that can be spammed in your hub.
!addcmd <name> [-o<options>] [-p<profilelevel>] [-m<max profilelevel>] [-u<use profilelevel>] [-t<time>] [-h"<helptext>"] "<text>" Add new textcommand
!delcmd <name> Delete a textcommand
!modcmd <name> [-o<options>] [-p<profilelevel>] [-m<max profilelevel>] [-u<use profilelevel>] [-t<time>] [-h"<helptext>"] "<text>" Modify a textcommand
!showcmd List all textcommands
!showcmd <name> Show a specific textcommand
Type in hub window:
!addcmd -h to see detailed help how to add a trigger command.
!addcmd <name> [-o<options>] [-p<profilelevel>] [-m<max profilelevel>] [-u<use profilelevel>] [-t<time>] [-h"<helptext>"] "<text>"
<options> A number created by adding the values of the following options:
0 Output to mainchat (default)
1 Display text in PM instead of mainchat
2 Show text to all (when this is used, you can use -p and -m to limit output to certain profilelevels)
4 Show text when user logged in (welcome messages/rightclicks)
8 Don't allow the command to be activated in mainchat (useful in combination with 4)
16 Do not create an item in !help for this command (forced when 8 is used)
32 Do not create a rightclick item for this command (forced when 8 is used)
64 Text should be send in raw format instead of mainchat/pm (useful to send custom rightclicks)
128 Only send to ADC user(s)
256 Only send to NMDC user(s)
<profilelevel> (for use with option 2) A number in the range from -1 (User) to 10 (Hubowner) that is the lowest profile that will see the command output (default is -1)
<max profilelevel> (for use with option 2) A number in the range from -1 (User) to 10 (Hubowner) that is the highest profile that will see the command output (default is level 10)
<use profilelevel> A number in the range from -1 (User) to 10 (Hubowner) that is the lowest profile that can use the command (default is -1)
<time> (for use with option 2) Time in seconds between broadcasts, or use m for minutes, h for hours
<helptext> Helptext to show in !help and display in rightclick usercommands
<text> Text to send, must be the last parameter on the line
Some commands has been added to the hub by default. MOTD +rules +faq already exist in your hub, to modify it you can use !modcmd command.
First of all - to list all existing commands type
!showcmd. If it is MOTD that you want to change type:
!showcmd welcome to check details of your MOTD:
Settings for textcommand: welcome
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Profilelevel: -1
Options: 44
* Show text when user logged in
* Doesn't allow the command to be activated in mainchat
* Doesn't create a rightclick item for this command
The "welcome" message was created with:
!addcmd welcome -p-1 -o44 "motd_text"Where 44 is a combination of three options with number 32, 8 and 4.
Use
!modcmd <name> [-o<options>] [-p<profilelevel>] [-m<max profilelevel>] [-u<use profilelevel>] [-t<time>] [-h"<helptext>"] "<text>" to modify your textcommand.
If command already exists you dont need to specify all the options, just those you want to change, so:
e.g.
!modcmd welcome "new_new_motd_goes_here"Remember to put content of your message in " ".
Variables that can be used in your hub are listed here:
http://flexhub.org/wiki/index.php/VariablesTo delete any of the commands just use !delcmd <command name>