Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HarHarLinks committed Feb 17, 2024
1 parent 900c7a7 commit 801bc37
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can install [libolm](https://gitlab.matrix.org/matrix-org/olm) from source,
or alternatively, check your system's package manager. Version `3.0.0` or
greater is required. Version `3.2.16` or greater is required with Python 3.12.

**(Optional) postgres development headers**
#### (Optional) Postgres development headers

By default, matrix-reminder-bot uses SQLite as its storage backend. This is
fine for a few hundred users, but if you plan to support a much higher volume
Expand Down Expand Up @@ -93,8 +93,10 @@ cp sample.config.yaml config.yaml
```

Edit the config file. The `matrix` section must be modified at least.
We recommend to also set your `timezone` in the `reminders` section and
to review the `allowlist` and `blocklist` settings.

#### (Optional) Set up a Postgres database
### (Optional) Set up a Postgres database

Create a postgres user and database for matrix-reminder-bot:

Expand Down Expand Up @@ -140,7 +142,15 @@ matrix-reminder-bot other-config.yaml

## Usage

Invite the bot to a room and it should accept the invite and join.
Invite the bot to a room, and it should accept the invite and join.

### Help

Use the help command to get a summary of all bot commands, including their short forms.

```
!help reminders
```

### Setting a reminder

Expand All @@ -155,7 +165,7 @@ Have the bot ping you in the room about something:
* `<reminder text>` is the text that the bot will remind you with.

Have the bot ping you and everyone else in the room about something
(assuming the bot has permissions to do so):
(assuming the bot has permissions to do so - by default the bot needs the moderator power level for this):

```
!remindroom <time>; <reminder text>
Expand Down Expand Up @@ -185,11 +195,11 @@ Common intervals and their short forms include [s]econds, [m]inutes, [h]ours, [d
### Cron-style reminders

If you need more complicated functionality for your reminder's
If you need complexer functionality for your recurring reminder's
timing, you can make use of cron tabs. You can read a guide on
cron tabs [here](https://www.adminschoice.com/crontab-quick-reference).

In short they allow you to execute more complicated, recurring
In short, they allow you to execute more complicated, recurring
reminders, such as those that should only fire during weekdays.

```
Expand All @@ -214,9 +224,9 @@ until 6:30pm, and only on Monday, Wednesday and Friday.
This will output a list of reminders and when they will fire next:

```
sometime Do the dishes (every 1d)
sometime Take out the trash
sometime Send email to Grandma
- <time>; Do the dishes (every 1d)
- <time>; Take out the trash
- <time>; Send email to Grandma
```

### Cancel a reminder
Expand Down
4 changes: 2 additions & 2 deletions sample.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ command_prefix: "!"
# Options for connecting to the bot's Matrix account
matrix:
# The Matrix User ID of the bot account
user_id: "@bot:example.com"
user_id: "@bot:example.org"
# Matrix account password
user_password: ""
# The public URL at which the homeserver's Client-Server API can be accessed
homeserver_url: https://example.com
homeserver_url: https://example.org
# The device ID that is a **non pre-existing** device
# If this device ID already exists, messages will be dropped silently in
# encrypted rooms
Expand Down

0 comments on commit 801bc37

Please sign in to comment.