Generate an Empty Skill
Before you can implement your “doubler” skill—which is at its core a Ruby one-liner—you’ll need to tell Lita to create a new handler module to store your code. To create a new skill, run bundle exec lita handler doubler at your console. This command will create a new lita-doubler directory with all the Ruby files required to build your first Lita skill. All you’ll need to do is fill in a few of the newly created files.
For your first skill, agree to all of the optional prompts by entering “yes.” These options help you build in some quality control with your Lita skills. It’s especially important to type “yes” when prompted, “Do you want to test your plugin on Travis CI?” as you’ll use this later.
When prompted for a ...
Get Build Chatbot Interactions now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.