Skip to content

Commit 56f6e69

Browse files
committed
Add readme for the paperbot
1 parent e75a030 commit 56f6e69

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

paperbot/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# paperbot
2+
3+
## Quick Reference
4+
5+
Paperbot currently responds to the following commands:
6+
7+
| Command | Description |
8+
| ------------- | ------------- |
9+
| `help` | Responds with a short help message. |
10+
| `search [papers|issues|everything] <keywords...>` | Searches for papers, issues or both (the default) matching the given keywords. |
11+
| `version` | Returns the version of the bot. |
12+
| `uptime` | Responds with the uptime of the bot. |
13+
| `updateindex` | Force updating of the paper index. |
14+
15+
In channels and in DMs with more than two accounts involved paperbot only responds either if mentioned in the message or if the paper number is put in square brackets, for example:
16+
> @paperbot P1000 P2000
17+
18+
> [P1000] [P2000]
19+
20+
in DMs with the bot only, the bot does not need to be mentioned.
21+
22+
## Hosting Instructions
23+
24+
The bot is hosted using a custom Dockercontainer that can either be built and used directly or indirectly via the docker-compose file.
25+
26+
### Configuration
27+
28+
Before building the container you need to edit the configuration. This is done using environment variables. For exampel via dotenv:
29+
30+
```
31+
cp example.env .env
32+
```
33+
34+
Then set the `MATTERMOST_TOKEN` to the one for the bot.
35+
36+
### Creating and starting the container
37+
38+
After that creating/starting/stopping follows normal docker-compose procedure.
39+
40+
```
41+
docker compose up -d
42+
```
43+
44+
### Rebuilding the container
45+
46+
```
47+
docker compose build --no-cache
48+
```

0 commit comments

Comments
 (0)