You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ python-rtmbot
6
6
7
7
A Slack bot written in Python that connects via the RTM API.
8
8
9
-
Python-rtmbot is a bot engine. The plugins architecture should be familiar to anyone with knowledge to the [Slack API](https://api.slack.com) and Python. The configuration file format is YAML.
9
+
Python-rtmbot is a bot engine. The plugins architecture should be familiar to anyone with knowledge of the [Slack API](https://api.slack.com) and Python. The configuration file format is YAML.
10
10
11
11
Some differences to webhooks:
12
12
@@ -28,21 +28,21 @@ Installation
28
28
mkdir myproject
29
29
cd myproject
30
30
31
-
2. Install rtmbot (ideally into a virtualenvhttps://virtualenv.readthedocs.io/en/latest/)
31
+
2. Install rtmbot (ideally into a [virtualenv](https://virtualenv.readthedocs.io/en/latest/))
32
32
33
33
pip install rtmbot
34
34
35
-
3. Create and rtmbot.conf file and configure rtmbot (https://api.slack.com/bot-users)
35
+
3. Create an rtmbot.conf file and [create a bot for your team](https://api.slack.com/bot-users)
36
36
37
37
# Add the following to rtmbot.conf
38
38
DEBUG: True # make this False in production
39
39
SLACK_TOKEN: "xoxb-11111111111-222222222222222"
40
40
ACTIVE_PLUGINS:
41
41
- plugins.repeat.RepeatPlugin
42
42
43
-
```DEBUG``` will adjust logging verbosity and cause the runner to exit on exceptions, generally making dubugging more pleasant.
43
+
```DEBUG``` will adjust logging verbosity and cause the runner to exit on exceptions, generally making debugging more pleasant.
44
44
45
-
```SLACK_TOKEN``` is needed to authenticate with your Slack team. More info at https://api.slack.com/web#authentication
45
+
```SLACK_TOKEN``` is needed to [authenticate with your Slack team.](https://api.slack.com/web#authentication)
46
46
47
47
```ACTIVE_PLUGINS``` RTMBot will attempt to import any Plugin specified in `ACTIVE_PLUGINS` (relative to your python path) and instantiate them as plugins. These specified classes should inherit from the core Plugin class.
48
48
@@ -63,7 +63,7 @@ RtmBot
63
63
64
64
Add Plugins
65
65
-------
66
-
Plugins can live within any python module, but we recommend just putting them in ./plugins. (Don't forget to add an __init__.py file to your directory to make it a module -- use `touch __init__.py` within your plugin directory to create one)
66
+
Plugins can live within any python module, but we recommend just putting them in ./plugins. (Don't forget to add an `__init__.py` file to your directory to make it a module -- use `touch __init__.py` within your plugin directory to create one)
67
67
68
68
To add a plugin, create a file within your plugin directory (./plugins is a good place for it).
0 commit comments