2020-07-20 11:13:08 +00:00
# Setting up matrix-reminder-bot (optional)
The playbook can install and configure [matrix-reminder-bot ](https://github.com/anoadragon453/matrix-reminder-bot ) for you.
2020-07-20 11:24:49 +00:00
It's a bot you can use to **schedule one-off & recurring reminders and alarms** .
2020-07-20 11:13:08 +00:00
See the project's [documentation ](https://github.com/anoadragon453/matrix-reminder-bot#usage ) to learn what it does and why it might be useful to you.
## Adjusting the playbook configuration
2024-10-17 13:17:56 +00:00
Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
2020-07-20 11:13:08 +00:00
```yaml
matrix_bot_matrix_reminder_bot_enabled: true
2022-11-01 14:22:58 +00:00
# Uncomment and adjust this part if you'd like to use a username different than the default
# matrix_bot_matrix_reminder_bot_matrix_user_id_localpart: bot.matrix-reminder-bot
# Generate a strong password here. Consider generating it with `pwgen -s 64 1`
2020-07-20 11:13:08 +00:00
matrix_bot_matrix_reminder_bot_matrix_user_password: PASSWORD_FOR_THE_BOT
# Adjust this to your timezone
matrix_bot_matrix_reminder_bot_reminders_timezone: Europe/London
```
## Installing
2024-12-01 07:42:30 +00:00
After configuring the playbook, run it with [playbook tags ](playbook-tags.md ) as below:
2020-07-20 11:13:08 +00:00
2024-12-01 07:42:30 +00:00
<!-- NOTE: let this conservative command run (instead of install - all) to make it clear that failure of the command means something is clearly broken. -->
2022-11-01 14:22:58 +00:00
```sh
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-users-created,start
2020-07-20 11:13:08 +00:00
```
2022-11-01 14:22:58 +00:00
**Notes**:
2024-12-01 07:42:30 +00:00
- The `ensure-matrix-users-created` playbook tag makes the playbook automatically create the bot's user account.
2022-11-01 14:22:58 +00:00
Edit installing instructions (#3844)
* Replace "just run-tags install-all/setup-all,start" with "just install-all/setup-all"
Thanks to the tip by Slavi that the overhead of ensure-matrix-users-created is negligible.
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
* Edit installing instructions
- Move the anchor links to docs/just.md
- Add note about running "ensure-matrix-users-created" tags, if ansible-playbook's tags not "setup-all,ensure-matrix-users-created,start", ie. either "setup-all,start", "setup-email2matrix,start", "setup-aux-files,setup-corporal,start", or "setup-matrix-user-verification-service,start"
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
* Update descriptions about installation
- Introduce the most conservative and stable raw ansible-playbook command.
- Introduce the just commands on installing.md and maintenance-upgrading-services.md, not on quick-start.md, since it is too early for quick start guide readers who are just starting to climb learning curve to use the shortcuts.
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
* Update docs/configuring-playbook-etherpad.md: remove the note about ensure-matrix-users-created
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
---------
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-01 15:04:54 +00:00
- The shortcut commands with the [`just` program ](just.md ) are also available: `just install-all` or `just setup-all`
2020-07-20 11:13:08 +00:00
2024-12-02 05:29:44 +00:00
`just install-all` is useful for maintaining your setup quickly ([2x-5x faster](../CHANGELOG.md#2x-5x-performance-improvements-in-playbook-runtime) than `just setup-all` ) when its components remain unchanged. If you adjust your `vars.yml` to remove other components, you'd need to run `just setup-all` , or these components will still remain installed.
2024-12-01 07:42:30 +00:00
- If you change the bot password (`matrix_bot_matrix_reminder_bot_matrix_user_password` in your `vars.yml` file) subsequently, the bot user's credentials on the homeserver won't be updated automatically. If you'd like to change the bot user's password, use a tool like [synapse-admin ](configuring-playbook-synapse-admin.md ) to change it, and then update `matrix_bot_matrix_reminder_bot_matrix_user_password` to let the bot know its new password.
2020-07-20 11:13:08 +00:00
## Usage
2024-10-17 13:17:56 +00:00
To use the bot, start a chat with `@bot.matrix-reminder-bot:example.com` (where `example.com` is your base domain, not the `matrix.` domain).
2020-07-20 11:13:08 +00:00
2024-10-17 13:17:56 +00:00
You can also add the bot to any existing Matrix room (`/invite @bot .matrix-reminder-bot:example.com`).
2020-07-20 11:13:08 +00:00
Basic usage is like this: `!remindme in 2 minutes; This is a test`
2022-02-02 07:05:12 +00:00
Send `!help reminders` to the room to see the bot's help menu for additional commands.
2020-07-20 11:13:08 +00:00
You can also refer to the upstream [Usage documentation ](https://github.com/anoadragon453/matrix-reminder-bot#usage ).