back to list

Aliases buildin handler

General

Author 2called-chaos
Source vendor/handlers/_buildin/aliases.rb
Commands !alias !aliases
Description Add custom (per client and/or server) MCL commands that trigger MCL commands.

Command overview

Usage:!alias
Action:Shows a list of available subcommands.
Default ACL:member

Invoke alias

Usage:!alias <name>
Action:Execute given alias if it exists
Default ACL:member
Note:Aliases can also be executed via !<name>

List aliases

Usage:!alias list [-u <user>] [-s] [-a] [filter] [page]
Action:List aliases
Default ACL: member
mod (-u)
Options:
-u
Show aliases of this user
-s
Show server aliases
filter
regex to filter list by name
page
pagination

Add alias / add command to alias

Usage:!alias add [-u <user>] [-s] <name> <command>
Action:Add a command to an alias, creates alias if it doesn't exists.
Default ACL: member
mod (-u)
admin (-s)
Options:
-u
Set alias for this user
-s
Set server alias
Note:Only MCL commands can be used, commands will be executed with the permission of the user!

Info - List commands in alias

Usage:!alias info [-u <user>] [-s] <name>
Action:List commands for this alias
Default ACL: member
mod (-u)
Options:
-u
Use aliases of this user
-s
Use server aliases

Delete aliases / commands in aliases

Usage:!alias delete [-u <user>] [-s] <name> [index]
Action:List commands for this alias
Default ACL: member
mod (-u)
admin (-s)
Options:
-u
Delete alias of this user
-s
Delete server alias
index
Only remove given command instead of the whole alias, will delete alias if last command