mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-31 15:27:56 +01:00 
			
		
		
		
	Merge pull request #4008 from luixxiul/fix
Update files for matrix-bot-chatgpt, matrix-bot-go-neb, matrix-bot-honoroit, and matrix-bot-matrix-reminder-bot
This commit is contained in:
		| @@ -6,6 +6,8 @@ The playbook can install and configure [matrix-chatgpt-bot](https://github.com/m | ||||
|  | ||||
| Talk to [ChatGPT](https://openai.com/blog/chatgpt/) via your favourite Matrix client! | ||||
|  | ||||
| See the project's [documentation](https://github.com/matrixgpt/matrix-chatgpt-bot/blob/main/README.md) to learn what it does and why it might be useful to you. | ||||
|  | ||||
| ## Prerequisites | ||||
|  | ||||
| ### Obtain an OpenAI API key | ||||
| @@ -52,6 +54,14 @@ matrix_bot_chatgpt_matrix_access_token: 'ACCESS_TOKEN_HERE' | ||||
| matrix_bot_chatgpt_matrix_bot_prompt_prefix: 'Instructions:\nYou are ChatGPT, a large language model trained by OpenAI.' | ||||
| ``` | ||||
|  | ||||
| ### Extending the configuration | ||||
|  | ||||
| There are some additional things you may wish to configure about the bot. | ||||
|  | ||||
| Take a look at: | ||||
|  | ||||
| - `roles/custom/matrix-bot-chatgpt/defaults/main.yml` for some variables that you can customize via your `vars.yml` file | ||||
|  | ||||
| ## Installing | ||||
|  | ||||
| After configuring the playbook, run it with [playbook tags](playbook-tags.md) as below: | ||||
| @@ -75,4 +85,6 @@ To use the bot, invite it to the room you specified on your `vars.yml` file (`/i | ||||
|  | ||||
| After the bot joins the room, you can send a message to it. When you do so, use the prefix if you configured it or mention the bot. | ||||
|  | ||||
| You can also refer to the upstream [documentation](https://github.com/matrixgpt/matrix-chatgpt-bot). | ||||
| ## Troubleshooting | ||||
|  | ||||
| As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-bot-chatgpt`. | ||||
|   | ||||
| @@ -220,6 +220,15 @@ After changing the domain, **you may need to adjust your DNS** records to point | ||||
|  | ||||
| If you've decided to reuse the `matrix.` domain, you won't need to do any extra DNS configuration. | ||||
|  | ||||
| ### Extending the configuration | ||||
|  | ||||
| There are some additional things you may wish to configure about the bot. | ||||
|  | ||||
| Take a look at: | ||||
|  | ||||
| - `roles/custom/matrix-bot-go-neb/defaults/main.yml` for some variables that you can customize via your `vars.yml` file | ||||
| - `roles/custom/matrix-bot-go-neb/templates/config.yaml.j2` for the bot's default configuration. You can override settings (even those that don't have dedicated playbook variables) using the `matrix_bot_go_neb_configuration_extension_yaml` variable | ||||
|  | ||||
| ## Installing | ||||
|  | ||||
| After configuring the playbook and potentially [adjusting your DNS records](#adjusting-dns-records), run the playbook with [playbook tags](playbook-tags.md) as below: | ||||
| @@ -246,3 +255,7 @@ Basic usage is like this: `!echo hi` or `!imgur puppies` or `!giphy matrix` | ||||
| If you enabled the github_cmd service, send `!github help` to the bot in the room to see the available commands. | ||||
|  | ||||
| You can also refer to the upstream [Documentation](https://github.com/matrix-org/go-neb). | ||||
|  | ||||
| ## Troubleshooting | ||||
|  | ||||
| As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-bot-go-neb`. | ||||
|   | ||||
| @@ -45,6 +45,14 @@ If you've changed the default hostname, you may need to create a CNAME record fo | ||||
|  | ||||
| When setting, replace `example.com` with your own. | ||||
|  | ||||
| ### Extending the configuration | ||||
|  | ||||
| There are some additional things you may wish to configure about the bot. | ||||
|  | ||||
| Take a look at: | ||||
|  | ||||
| - `roles/custom/matrix-bot-honoroit/defaults/main.yml` for some variables that you can customize via your `vars.yml` file | ||||
|  | ||||
| ## Installing | ||||
|  | ||||
| After configuring the playbook and potentially [adjusting your DNS records](#adjusting-dns-records), run the playbook with [playbook tags](playbook-tags.md) as below: | ||||
| @@ -73,3 +81,15 @@ After the bot joins the room, any Matrix user can send a message to it to start | ||||
| Send `!ho help` to the bot in the room to see the available commands. | ||||
|  | ||||
| You can also refer to the upstream [documentation](https://github.com/etkecc/honoroit#features). | ||||
|  | ||||
| ## Troubleshooting | ||||
|  | ||||
| As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-bot-honoroit`. | ||||
|  | ||||
| ### Increase logging verbosity | ||||
|  | ||||
| If you want to increase the verbosity, add the following configuration to your `vars.yml` file and re-run the playbook: | ||||
|  | ||||
| ```yaml | ||||
| matrix_bot_honoroit_loglevel: 'DEBUG' | ||||
| ``` | ||||
|   | ||||
| @@ -23,6 +23,15 @@ matrix_bot_matrix_reminder_bot_matrix_user_password: PASSWORD_FOR_THE_BOT | ||||
| matrix_bot_matrix_reminder_bot_reminders_timezone: Europe/London | ||||
| ``` | ||||
|  | ||||
| ### Extending the configuration | ||||
|  | ||||
| There are some additional things you may wish to configure about the bot. | ||||
|  | ||||
| Take a look at: | ||||
|  | ||||
| - `roles/custom/matrix-bot-matrix-reminder-bot/defaults/main.yml` for some variables that you can customize via your `vars.yml` file | ||||
| - `roles/custom/matrix-bot-matrix-reminder-bot/templates/config.yaml.j2` for the bot's default configuration. You can override settings (even those that don't have dedicated playbook variables) using the `matrix_bot_matrix_reminder_bot_configuration_extension_yaml` variable | ||||
|  | ||||
| ## Installing | ||||
|  | ||||
| After configuring the playbook, run it with [playbook tags](playbook-tags.md) as below: | ||||
| @@ -53,3 +62,18 @@ Basic usage is like this: `!remindme in 2 minutes; This is a test` | ||||
| Send `!help reminders` to the room to see the bot's help menu for additional commands. | ||||
|  | ||||
| You can also refer to the upstream [Usage documentation](https://github.com/anoadragon453/matrix-reminder-bot#usage). | ||||
|  | ||||
| ## Troubleshooting | ||||
|  | ||||
| As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-bot-matrix-reminder-bot`. | ||||
|  | ||||
| ### Increase logging verbosity | ||||
|  | ||||
| The default logging level for this component is `INFO`. If you want to increase the verbosity, add the following configuration to your `vars.yml` file and re-run the playbook: | ||||
|  | ||||
| ```yaml | ||||
| matrix_bot_matrix_reminder_bot_configuration_extension_yaml: | | ||||
|   logging: | ||||
|     # Valid values: ERROR, WARNING, INFO, DEBUG | ||||
|     level: DEBUG | ||||
| ``` | ||||
|   | ||||
| @@ -63,7 +63,7 @@ blocklist: | ||||
| # Logging setup | ||||
| logging: | ||||
|   # Logging level | ||||
|   # Allowed levels are 'INFO', 'WARNING', 'ERROR', 'DEBUG' where DEBUG is most verbose | ||||
|   # Valid values: ERROR, WARNING, INFO, DEBUG | ||||
|   level: INFO | ||||
|   # Configure logging to a file | ||||
|   file_logging: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user