If you utilize some plugins that have long complicated commands because they accept arguments and you would like to alias into shorter commands, this plugin can help you.
For example, if you have a command to run a process on a heroku app to check stats that you like to run periodically:
/hk run my-company-production ./bin/check_stats
That's a bit verbose, so you could alias as
stats_prod by doing the following:
/alias add stats_prod hk run my-company-production ./bin/check_stats
Then you simply have to type:
See Usage for more details.
Add lita-alias to your Lita instance's Gemfile:
The plugin requires access to redis for storing aliases
/alias add ALIAS COMMAND
Adds an alias so when you type the command
/ALIAS the COMMAND is sent instead as if you had typed it yourself. Do not put the robot alias character ('/' for example) in the COMMAND argument. When the ALIAS is triggered, the chatbot will receive the COMMAND as a chat message with your robot's alias character prepended.
/alias add stats_prod hk run my-company-production ./bin/refresh_cache
/alias delete ALIAS
Deletes the ALIAS.
/alias delete stats_prod
Shows all the aliases that have been saved.
Some COMMANDS maybe triggered when you alias them if the handler's route is very loose with where it may appear in a chat message.