From 82ab61605e09b500fef8475356bbbcb6f786b2ae Mon Sep 17 00:00:00 2001
From: Adam Piontek <adam@adampiontek.net>
Date: Sun, 26 Aug 2018 09:18:59 -0400
Subject: [PATCH] added README, modified chat command descriptions

---
 README.md | 16 ++++++++++++++++
 doggo.py  | 14 +++++++-------
 2 files changed, 23 insertions(+), 7 deletions(-)
 create mode 100644 README.md

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e0b1fcf
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# Doggo
+
+This is a plugin for [Errbot](http://errbot.io/) that fetches random dog images from the [dog.ceo API$
+
+Users can optionally specify a breed, and, also optionally, a sub-breed:
+
+## 
+- `!doggo` Fetches a random dog image
+- `!doggo <breed>` fetches a random dog image of `<breed>` specified
+- `!doggo <breed> <sub-breed>` fetches a random dog image of `<breed>` & `<sub-breed>` specified
+- `!listbreeds` DMs the user the available breeds for use in the random image retriever
+- `!listsubbreeds <breed>` DMs the user the available sub-breeds for a given `<breed>`
+- `!listallbreeds` DMs the user the list of all available breeds & sub-breeds
+- `!reloadbreeds` Admin-only; forces reload of the breeds currently available
+- `!reloadsubbreeds <breed>` Admin-only; forces reload of sub-breed for the given `<breed>`
+
diff --git a/doggo.py b/doggo.py
index 68f401b..858e5b2 100644
--- a/doggo.py
+++ b/doggo.py
@@ -5,7 +5,7 @@ from errbot import botcmd, BotPlugin
 
 
 class Doggo(BotPlugin):
-    """Get random dog image URLs"""
+    """Fetch random dog image URLs"""
 
     BASE_URL = 'https://dog.ceo/api'
 
@@ -14,7 +14,7 @@ class Doggo(BotPlugin):
     @botcmd(split_args_with=' ')
     def doggo(self, msg, args):
         """
-           Retrieve a random dog image, optionally specifying a breed, and optionally a sub-breed
+           Fetches a random dog image, optionally of given <breed>, or of given <breed> <sub-breed>
         """
         url = '{}/breeds/image/random'.format(self.BASE_URL)
 
@@ -54,7 +54,7 @@ class Doggo(BotPlugin):
     @botcmd(split_args_with=' ')
     def listbreeds(self, msg, args):
         """
-           List available breeds for use in the random image retriever
+           DMs the user the breeds available for use in the random image fetcher
         """
         if not self.breeds:
             args.append('calledbyfunction')
@@ -71,7 +71,7 @@ class Doggo(BotPlugin):
     @botcmd(admin_only=True,split_args_with=' ')
     def reloadbreeds(self, msg, args):
         """
-           Reloads the list of breeds currently available
+           Admin-only; forces reload of the breeds currently available
         """
         url = '{}/breeds/list'.format(self.BASE_URL)
 
@@ -97,7 +97,7 @@ class Doggo(BotPlugin):
     @botcmd(split_args_with=' ')
     def listsubbreeds(self, msg, args):
         """
-           List available sub-breeds of a user-supplied breed for use in the random image retriever
+           DMs the user the sub-breeds available for a given `<breed>`
         """
         if len(args) > 0 and args[0]:
             breed = args[0]
@@ -126,7 +126,7 @@ class Doggo(BotPlugin):
     @botcmd(admin_only=True, split_args_with=' ')
     def reloadsubbreeds(self, msg, args):
         """
-           Reloads the list of sub-breeds currently available for a given breed
+           Admin-only; forces reload of the sub-breeds available for the given <breed>
         """
         if len(args) > 0 and args[0]:
             breed = args[0]
@@ -161,7 +161,7 @@ class Doggo(BotPlugin):
     @botcmd(split_args_with=' ')
     def listallbreeds(self, msg, args):
         """
-           List all breeds & sub-breeds for use in the random image retriever
+           DMs the user the list of all breeds & sub-breeds available for use in the random image fetcher
         """
         if not self.breeds:
             args.append('calledbyfunction')