Commit graph

11 commits

Author SHA1 Message Date
4e0bc7a84b
fix(docs): correct grammar in configuration instructions
Adjusted the grammar in the configuration instructions to improve clarity. Ensured instructions explicitly state that credentials should come directly from the user's homeserver, aiding user comprehension and preventing setup errors.
2024-08-09 12:12:40 +02:00
7bfcda09b8
feat(bot): add initial sync before continuous sync
Added an initial sync with a timeout of 30000ms before starting continuous synchronization to ensure the bot is ready with the latest state from the server. This change aims to prevent any missed messages that might occur during the startup phase.
2024-08-09 11:53:31 +02:00
a9ca33c77b
feat(bot): add read markers upon command execution
Mark events as read in the moderation room after handling commands.
Enhances user feedback by visually confirming command reception.
2024-08-09 11:44:46 +02:00
798fcc361e
fix(bot): handle missing shutdown config keys
Set default values for `shutdown_title` and `shutdown_message` if they are not present in the config. This prevents potential errors when these keys are missing, ensuring smoother bot initialization.
2024-08-09 11:43:34 +02:00
dc73ef6700
feat: add room shutdown functionality with custom messages
Introduced the ability to shutdown rooms with an optional purge option.
Users can now specify custom shutdown titles and messages. This enhances
the bot's ability to handle content violations more effectively and
communicate actions clearly to users.

- Added shutdown_title and shutdown_message parameters.
- Implemented shutdown_room method to manage room shutdowns.
- Updated command handler to recognize "!roomba shutdown" with "--purge".
2024-08-09 11:42:26 +02:00
519adeb16e
fix(bot.py): correct indentation of send_message method
Fixed the indentation of the send_message method within the RoombaBot class. The incorrect indentation caused the method to be misaligned, possibly resulting in an AttributeError. This ensures the method is properly defined and callable within the class.
2024-08-09 11:13:08 +02:00
eadc4d7791
fix(bot): separate user_id from client creation
Removed user_id from the AsyncClient constructor and set it separately on the client object. This change ensures that the user_id is consistently assigned regardless of the homeserver type, improving maintainability and clarity of client configuration.
2024-08-09 11:11:56 +02:00
e0f3408b5c
feat: add Pantalaimon support for encrypted rooms
Added optional parameters to initialize RoombaBot with Pantalaimon's homeserver and token to handle encrypted rooms. Updated configuration to include these new options. This enhancement allows secure moderation of encrypted rooms using Pantalaimon.
2024-08-09 11:01:58 +02:00
309e4968c3
fix: handle unknown commands and correct async indentation errors
Added a response for unknown commands to guide users on valid usage, improving user experience and preventing misuse. Fixed indentation for async functions to ensure correct code execution. These changes address issues with command handling and function performance.
2024-08-07 12:22:17 +02:00
840ae90376
feat: include local user details in block/unblock messages
Added functionality to retrieve and include local user details
in block/unblock room messages for clarity. Implemented a new
method to fetch local users in a room by their IDs, enhancing
the feedback provided to moderators.
2024-08-07 10:41:21 +02:00
504e2399cc
feat: add RoombaBot for blocking/unblocking Matrix rooms
Introduced RoombaBot to manage room blocking/unblocking via commands.
Configured logging for better traceability of bot actions. Added
config.dist.yaml to provide a template for configuration setup.
Updated .gitignore to exclude virtual environments and unnecessary files.

This bot listens to specific commands in a moderation room and uses
Matrix administration APIs to block or unblock specified rooms.
2024-08-07 10:28:30 +02:00