Moderation Bot integration WIP:

* Start and stop the bot WIP
* Prosody: removing the BOSH module from the global scope (must only be present on relevant virtualhosts)
* Some refactoring
This commit is contained in:
John Livingston
2023-09-18 18:53:07 +02:00
parent 65fd49a81c
commit f97e54d499
15 changed files with 348 additions and 26 deletions

View File

@ -29,7 +29,7 @@ Following settings concern the federation with other Peertube instances, and oth
Following settings concern the advanced channel options:
users will be able to add some customization on their channels, activate the moderation bot, ...
### {{% livechat_label disable_configuration_label %}}
### {{% livechat_label disable_channel_configuration_label %}}
If you encounter any issue with this feature, you can disable it.

View File

@ -93,9 +93,16 @@ There will be some cleaning batch, to delete deprecated files.
The `bot/muc_domain` (where muc_domain is the current MUC domain) folder contains configuration files that are read by the moderation bot.
This bot uses the [xmppjs-chat-bot](https://github.com/JohnXLivingston/xmppjs-chat-bot) package.
Note: we include the MUC domain (`room.instance.tld`) in the filename in case the instance domain changes.
Note: we include the MUC domain (`room.instance.tld`) in the dirname in case the instance domain changes.
In such case, existing rooms could get lost, and we want a way to ignore them to avoid gettings errors.
## bot/muc_domain/moderation.json
The `bot/muc_domain/moderation.json` file contains the moderation bot global configuration.
This bot uses the [xmppjs-chat-bot](https://github.com/JohnXLivingston/xmppjs-chat-bot) package, see it's README file for more information.
Note: this includes the bot username and password. Don't let it leak.
### bot/muc_domain/rooms
The `bot/muc_domain/rooms` folder contains room configuration files.