This plugin allows users to define aliases to commands and combinations
of commands (via nesting).
Importing from Alias
^^^^^^^^^^^^^^^^^^^^
Add an aka, Alias, which eases the transitioning to Aka from Alias.
First we will load Alias and Aka::
| Command | Help |
|---|---|
| add | Aka add [--channel <#channel>] <name> <command> Defines an alias <name> that executes <command>. The <command> should be in the standard "command argument [nestedcommand argument]" arguments to the alias; they'll be filled with the first, second, etc. arguments. $1, $2, etc. can be used for required arguments. @1, @2, etc. can be used for optional arguments. $* simply means "all arguments that have not replaced $1, $2, etc.", ie. it will also include optional arguments. |
| importaliasdatabase | Aka importaliasdatabase takes no arguments Imports the Alias database into Aka's, and clean the former. |
| list | Aka list [--channel <#channel>] [--keys] [--unlocked|--locked] Lists all Akas defined for <channel>. If <channel> is not specified, lists all global Akas. If --keys is given, lists only the Aka names and not their commands. |
| lock | Aka lock [--channel <#channel>] <alias> Locks an alias so that no one else can change it. |
| remove | Aka remove [--channel <#channel>] <name> Removes the given alias, if unlocked. |
| search | Aka search [--channel <#channel>] <query> Searches Akas defined for <channel>. If <channel> is not specified, searches all global Akas. |
| set | Aka set [--channel <#channel>] <name> <command> Overwrites an existing alias <name> to execute <command> instead. The <command> should be in the standard "command argument [nestedcommand argument]" arguments to the alias; they'll be filled with the first, second, etc. arguments. $1, $2, etc. can be used for required arguments. @1, @2, etc. can be used for optional arguments. $* simply means "all arguments that have not replaced $1, $2, etc.", ie. it will also include optional arguments. |
| show | Aka show [--channel <#channel>] <alias> This command shows the content of an Aka. |
| unlock | Aka unlock [--channel <#channel>] <alias> Unlocks an alias so that people can define new aliases over it. |