botserver: Rename zulip-bot-server to zulip-botserver.

This commit is contained in:
Robert Hönig 2018-06-01 13:48:56 +02:00 committed by Tim Abbott
parent f0284c84d6
commit 620b473cc8
1 changed files with 6 additions and 6 deletions

View File

@ -65,10 +65,10 @@ pip install zulip_botserver
1. Run the Botserver, where `helloworld` is the name of the bot you 1. Run the Botserver, where `helloworld` is the name of the bot you
want to run: want to run:
`zulip-bot-server --config-file <path_to_zuliprc> --bot-name=helloworld` `zulip-botserver --config-file <path_to_zuliprc> --bot-name=helloworld`
You can specify the port number and various other options; run You can specify the port number and various other options; run
`zulip-bot-server --help` to see how to do this. `zulip-botserver --help` to see how to do this.
1. Congrats, everything is set up! Test your Botserver like you would 1. Congrats, everything is set up! Test your Botserver like you would
test a normal bot. test a normal bot.
@ -119,7 +119,7 @@ Botserver process. You can do this with the following procedure.
command format is: command format is:
``` ```
zulip-bot-server --config-file <path_to_botserverrc> zulip-botserver --config-file <path_to_botserverrc>
``` ```
If omitted, `hostname` defaults to `127.0.0.1` and `port` to `5002`. If omitted, `hostname` defaults to `127.0.0.1` and `port` to `5002`.
@ -147,8 +147,8 @@ running it manually.
and store it in `/etc/supervisor/conf.d/zulip-botserver.conf`. and store it in `/etc/supervisor/conf.d/zulip-botserver.conf`.
* Copy the following section into your existing supervisord config file. * Copy the following section into your existing supervisord config file.
[program:zulip-bot-server] [program:zulip-botserver]
command=zulip-bot-server --config-file=<path/to/your/botserverrc> command=zulip-botserver --config-file=<path/to/your/botserverrc>
--hostname <address> --port <port> --hostname <address> --port <port>
startsecs=3 startsecs=3
stdout_logfile=/var/log/zulip-botserver.log ; all output of your Botserver will be logged here stdout_logfile=/var/log/zulip-botserver.log ; all output of your Botserver will be logged here
@ -175,7 +175,7 @@ running it manually.
``` ```
The output should include a line similar to this: The output should include a line similar to this:
> zulip-bot-server RUNNING pid 28154, uptime 0:00:27 > zulip-botserver RUNNING pid 28154, uptime 0:00:27
The standard output of the Botserver will be logged to the path in The standard output of the Botserver will be logged to the path in
your *supervisord* configuration. your *supervisord* configuration.