Skip to content
This repository was archived by the owner on Dec 29, 2017. It is now read-only.

Commit f4397a9

Browse files
authored
update readme (#25)
1 parent 83aefc9 commit f4397a9

File tree

5 files changed

+48
-98
lines changed

5 files changed

+48
-98
lines changed

README.rst

+10-68
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44

55
|build| |doc|
66

7-
A bot framework built for the people and by the people of the `python developers slack community`_.
7+
An asynchronous python bot framework.
88

9-
The uses of bots are nearly endless and come in all shapes and sizes. They can handle Slack shenanigans, monitor the status of a crypto-currency, or become your personal assistant. sir-bot-a-lot can help you get started writing your own bot.
9+
The uses of bots are nearly endless and come in all shapes and sizes.
10+
They can handle Slack shenanigans, monitor the status of a crypto-currency,
11+
or become your personal assistant. Sir-bot-a-lot can help you get started
12+
writing your own.
1013

14+
Sir-bot-a-lot is a project maintained by the `pyslackers`_ community.
1115
Want to join? `Get an invite`_ !
1216

13-
.. _Get an invite: http://pythondevelopers.herokuapp.com/
14-
.. _python developers slack community: https://pythondev.slack.com/
17+
.. _pyslackers: http://pyslackers.com
18+
.. _Get an invite: http://pyslackers.com
1519
.. |build| image:: https://travis-ci.org/pyslackers/sir-bot-a-lot.svg?branch=master
1620
:alt: Build status
1721
:target: https://travis-ci.org/pyslackers/sir-bot-a-lot
@@ -23,68 +27,6 @@ Want to join? `Get an invite`_ !
2327
:alt: Sir-bot-a-lot icon
2428
:target: http://sir-bot-a-lot.readthedocs.io/en/latest
2529

26-
Installation
27-
------------
30+
Documentation available `here`_.
2831

29-
The sources for sir-bot-a-lot can be downloaded from the `github repo`_.
30-
31-
.. code-block:: console
32-
33-
$ git clone https://github.com/pyslackers/sir-bot-a-lot.git
34-
35-
Once you have a copy of the source, you can install it with:
36-
37-
.. code-block:: console
38-
39-
$ pip install sir-bot-a-lot/
40-
41-
To install the development requirements do:
42-
43-
.. code-block:: console
44-
45-
$ pip install sir-bot-a-lot/[dev]
46-
47-
Run
48-
---
49-
50-
To start Sir-bot-a-lot use the command
51-
52-
.. code-block:: console
53-
54-
$ sirbot
55-
56-
By default no plugins are installed so Sir-bot-a-lot will do nothing.
57-
Check out the `available plugins`_.
58-
59-
.. _github repo: https://github.com/pyslackers/sir-bot-a-lot
60-
.. _available plugins: http://sir-bot-a-lot.readthedocs.io/en/latest/plugins.html#available-plugins
61-
62-
Docker
63-
------
64-
65-
Build the image:
66-
67-
.. code-block:: console
68-
69-
$ docker build -t sir-bot-a-lot .
70-
71-
And run the image:
72-
73-
.. code-block:: console
74-
75-
$ docker run -ti -p "8080:8080" sir-bot-a-lot
76-
77-
Configuration
78-
-------------
79-
80-
To load a custom file use the ``--config`` argument or the ``SIRBOT_CONFIG`` environment variable with the configuration file path.
81-
82-
The default configuration file look like this:
83-
84-
.. code-block:: yaml
85-
86-
sirbot:
87-
port: 8080
88-
plugins: []
89-
90-
Plugins can also be added with the ``--plugins`` argument
32+
.. _here: http://sir-bot-a-lot.readthedocs.io/en/latest/

docs/configuration.rst

+20-23
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,31 @@
22
Configuration
33
=============
44

5-
Command Line
6-
------------
5+
Start
6+
-----
77

8-
To start Sir Bot-a-lot you can use:
8+
To start Sir Bot-a-lot you can use one of:
99

1010
.. code-block:: console
1111
1212
$ sirbot
1313
14-
or:
15-
1614
.. code-block:: console
1715
1816
$ python run.py
1917
2018
21-
Arguments
22-
^^^^^^^^^
19+
Environment variables
20+
---------------------
21+
22+
The environment variable take precedence over the command line arguments.
23+
24+
* :code:`SIRBOT_PORT`: Port where to run Sir Bot-a-lot
25+
* :code:`SIRBOT_CONFIG`: Path to Sir Bot-a-lot Yaml config file
26+
27+
28+
Command line arguments
29+
----------------------
2330

2431
The command line arguments take precedence over the configuration file.
2532

@@ -30,23 +37,11 @@ The command line arguments take precedence over the configuration file.
3037
* :code:`-p --plugins`: Plugins to start
3138

3239

33-
Environment variables
34-
---------------------
35-
The environment variable take precedence over the command line arguments and the
36-
configuration file.
37-
38-
* :code:`SIRBOT_PORT`: Port where to run Sir Bot-a-lot
39-
* :code:`SIRBOT_CONFIG`: Path to Sir Bot-a-lot Yaml config file
40-
41-
4240
Configuration file
4341
------------------
4442

45-
Sir Bot-a-lot configuration is a Yaml file containing the core and all the additional
46-
plugins configuration.
47-
48-
The environment variable and command line arguments take precedence over the
49-
configuration file.
43+
Sir Bot-a-lot configuration is a Yaml file containing the core and all the
44+
additional plugins configuration.
5045

5146
A basic configuration will look like this:
5247

@@ -63,11 +58,13 @@ A basic configuration will look like this:
6358
Starting priority
6459
^^^^^^^^^^^^^^^^^
6560

66-
Plugins can be dependant on other plugins. You can ensure a startup order by setting a startup priority. By default all plugins have a priority of 50. Plugins with a higher priority will start before the one with a lower priority.
61+
Plugins can depend on other plugins. You can ensure a startup order by setting
62+
a startup priority. By default all plugins have a priority of 50. Plugins with
63+
a higher priority will start before the one with a lower priority.
6764

6865
If multiple plugins have the same priority they will start simultaneously.
6966

70-
The priority can be set to false to disable a plugin.
67+
A priority of 0 or false will disable the plugin.
7168

7269
.. code-block:: yaml
7370

docs/index.rst

+10-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
Welcome to Sir Bot-a-lot's documentation!
88
=========================================
99

10-
An asynchronous bot framework built for the people and by the people of the `python developers slack community`_.
10+
An asynchronous python bot framework.
11+
12+
The uses of bots are nearly endless and come in all shapes and sizes.
13+
They can handle Slack shenanigans, monitor the status of a crypto-currency,
14+
or become your personal assistant. Sir-bot-a-lot can help you get started
15+
writing your own.
16+
17+
Sir-bot-a-lot is a project maintained by the `pyslackers`_ community.
1118
Want to join? `Get an invite`_ !
1219

1320
.. toctree::
@@ -24,5 +31,5 @@ Want to join? `Get an invite`_ !
2431
authors
2532
license
2633

27-
.. _Get an invite: http://pythondevelopers.herokuapp.com/
28-
.. _python developers slack community: https://pythondev.slack.com/
34+
.. _pyslackers: http://pyslackers.com
35+
.. _Get an invite: http://pyslackers.com

docs/installation.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Installation
88
Stable release
99
--------------
1010

11-
**NOT YET RELEASED**
11+
.. note::
12+
13+
Not yet released
1214

1315
To install sir-bot-a-lot, run this command in your terminal:
1416

@@ -30,7 +32,7 @@ You can either clone the public repository:
3032

3133
.. code-block:: console
3234
33-
$ git clone git://gitlab.com/PythonDevCommunity/sir-bot-a-lot
35+
$ git clone git://github.com/pyslackers/sir-bot-a-lot
3436
3537
Or download the `tarball`_:
3638

docs/plugins.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugins
55
=======
66

7-
.. _available_plugins:
7+
.. _available plugins:
88

99
Available plugins
1010
-----------------
@@ -43,4 +43,6 @@ A new facade instance is created each time a plugin request one.
4343
Example
4444
^^^^^^^
4545

46-
For example plugins take a look at the example folder in the github repository.
46+
For example plugins take a look at the `example folder`_ in the github repository.
47+
48+
.. _example folder: https://github.com/pyslackers/sir-bot-a-lot/tree/master/examples/plugin

0 commit comments

Comments
 (0)