diff --git a/README.md b/README.md index 3b7b063..126544d 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Generally speaking, here's what you need to do: 1. Create a handler function that takes event objects and does something with them. This function will get called with your bot instance (described below) and the KbEvent instance. 2. Create a bot. You _must_ initialize this with the handler function to call with each event. You _may_ optionally pass in: (1) the username and/or paperkey for the bot's identity (it'll default to the currently logged-in user otherwise), (1) the event loop that you want new tasks to be sent to (this is necessary if you want to lock on async behavior -- see the examples), (2) the location of the running keybase app (defaults to `keybase` which is fine if it's in your PATH), your user's home directory, or pid_file. These three are more useful for complicated local development with multiple accounts and less useful if you're running in a docker container or as the only user on your system. 3. If you are not already running on a logged-in device, you need to do that. We recommend doing this with the `oneshot` command. It's in the examples. -4. start the bot inside the asyncio event loop. This bot command wraps `keybase chat api-listen`, (and it takes basically the same exact options) and fires off events to your handler function. +4. Start the bot inside the asyncio event loop. This bot command wraps `keybase chat api-listen`, (and it takes basically the same exact options) and fires off events to your handler function. ## Examples diff --git a/pykeybasebot/bot.py b/pykeybasebot/bot.py index ede1a00..6fe31f7 100644 --- a/pykeybasebot/bot.py +++ b/pykeybasebot/bot.py @@ -123,7 +123,7 @@ async def logsend(self, msg): command = f'log send --no-confirm --feedback "{only_word_characters}"' logging.debug(f"starting a log send with message: {only_word_characters}") await self.submit(command, timeout_ms=10000) - logging.debug(f"finished logsend") + logging.debug("finished logsend") async def ensure_initialized(self): if not await self._is_initialized():