diff --git a/templates/zerver/api/running-bots.md b/templates/zerver/api/running-bots.md index 341ec6303a..bc975c2da3 100644 --- a/templates/zerver/api/running-bots.md +++ b/templates/zerver/api/running-bots.md @@ -200,7 +200,7 @@ running it manually. * My bot won't start * Ensure that your API config file is correct (download the config file from the server). - * Ensure that you bot script is located in zulip_bots/bots// + * Ensure that your bot script is located in zulip_bots/bots// * Are you using your own Zulip development server? Ensure that you run your bot outside the Vagrant environment. * Some bots require Python 3. Try switching to a Python 3 environment before running diff --git a/templates/zerver/api/writing-bots.md b/templates/zerver/api/writing-bots.md index 92776cd8c8..68082ab9a0 100644 --- a/templates/zerver/api/writing-bots.md +++ b/templates/zerver/api/writing-bots.md @@ -206,7 +206,7 @@ None. #### Example implementation - ``` +``` def handle_message(self, message, bot_handler): original_content = message['content'] original_sender = message['sender_email'] @@ -219,7 +219,7 @@ None. subject=message['sender_email'], content=new_content, )) - ``` +``` ### bot_handler.send_message *bot_handler.send_message(message)* @@ -367,12 +367,12 @@ every call to `put` and `get`, respectively. ### Configuration file - ``` +``` [api] key= email= site= - ``` +``` * key - the API key you created for the bot; this is how Zulip knows the request is from an authorized user.