Create a Mini-skill to Check Installed Version
For this section, let’s assume that your Lita bot is managed by Git and that it has access to a local Git client through your shell. With your bot being part of a locally managed Git repository, you can quickly look up several useful bits of information about your bot:
- What is the git commit hash for the current commit?
- What is the origin URL of this local Git repository?
- What is the installed version of this Lita skill’s gem?
The following demo session asks a Lita bot named “Bookbot” which version of its codebase is running. Behind the scenes, Lita executes a few shell commands to find out which git commit is currently active and which version of a specific gem is installed. Lita then presents those ...
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.