Aliases
With the introduction of multi-command inputs, I implemented an alias system that can shorten the command call of a long series of commands.
Simple Example
!setalias botinfo (version) | (about)
--> This command will register the alias as botinfo.
!botinfo
--> Now you can call this registered alias as a command, hence shortening the
command call!
Alias Commands
!setalias 'alias_name' 'commands'
--> Registers a new alias for a series of commands delimited by the '|' symbol. Make sure that command names are within brackets.
For example:
!alias example (version) | (about) | (echo) test
--> The commands are separated by the '|' character, with each command in brackets.!example
--> You can then call the registered alias and it will execute all the commands.
!aliases
--> Echoes a list of all registered aliases in the channel chat.!removealias 'alias_name'
--> Removes the registered alias.!clearaliases
--> Removes all registered aliases.
General aliases are stored in the custom_aliases.csv file in the cfg folder.
Plugin specific aliases are stored in the aliases.csv file in that plugin folder.
NOTE: Commands used in aliases will still require the appropriate user privileges!