Commit graph

25 commits

Author SHA1 Message Date
c1032fd1c5
feat(bot): enhance ticket room invitation process
Added customer notification when a moderator invites themselves to a ticket room, improving transparency and communication. Corrected parameter for inviting operators to ensure proper user identification. Fixed room state update targeting, enhancing data accuracy.
2024-11-09 16:37:17 +01:00
652206a21a
feat(bot): enhance reaction processing logic
Updated the reaction processing mechanism to fetch user and ticket IDs directly from room state events instead of extracting them from messages. This streamlines and improves the robustness of the approval, rejection, and invitation workflows in the application bot. State storage for message-to-ticket mapping was also added to facilitate this process.
2024-11-08 21:28:26 +01:00
8f5935e41d
fix(bot): react in operator room instead of user room
Updated the bot's reactions to be sent to the operator room rather than the user room to ensure that all reactions are correctly coordinated with operations. Removed redundant logging for cleaner output. This change is aimed at improving the message handling accuracy and operational efficiency.
2024-11-08 13:27:03 +01:00
2632527f65
fix(bot): correct message type for emoji reaction
Changed the message type check from `RoomMessageText` to `RoomSendResponse` for accurate handling of sent message responses regarding emoji reactions. This ensures appropriate logging and message processing in compliance with expected response types.
2024-11-08 13:20:48 +01:00
84de0f7eb5
fix(bot): prevent self-sending of "!apply" commands
Ensure that the bot ignores "!apply" commands sent by itself to avoid unnecessary processing and potential loops. Also, add logging for message reactions to aid in debugging and monitoring.
2024-11-08 13:19:28 +01:00
372a719de0
refactor(bot): update event handling for applications
Revises method signatures to directly utilize the `event` object rather than individual message components, streamlining event processing for command and message relays. This change enhances code clarity and maintains consistency across methods.
2024-11-08 13:18:28 +01:00
7bfa875f05
fix(bot): ignore self-reactions and add emoji responses
The bot now ignores reactions from itself, preventing redundant logging and processing. Added functionality to automatically react with approval, pending, and rejection emojis to messages in the operator room. This enhances user interaction and streamlines the application review process.
2024-11-08 13:15:41 +01:00
7df144e107
fix(bot): correct event content access in reactions
Changed the `reaction_callback` method to access reaction event contents through `event.source["content"]` instead of `event.content`. This update addresses issues with data access during reaction handling, preventing potential errors. Added debug logging for improved tracing of reaction events.
2024-11-08 13:10:36 +01:00
105e5c7abe
fix(logging): enhance error logging for message relay
Improved error logs by including the event type when a message relay fails. This aids in debugging by providing more context about the nature of the error.
2024-11-08 13:08:01 +01:00
b33f905b3c
fix(bot): add sender info and error handling
Include the sender's name in bot notifications to enhance user communication. Introduce exception handling and logging when relaying messages to improve debugging and reliability.
2024-11-08 13:06:25 +01:00
0b32442011
feat(bot): add emoji-based application handling
Introduce emoji reaction handling in the application bot to streamline member application decisions. The bot now processes reactions "🟢" to approve, "🔴" to reject, and "🟡" to invite users to operator rooms, automating user management. This enhancement reduces manual intervention and improves efficiency.
2024-11-08 10:31:33 +01:00
1b0d3d4ddd
feat(bot): add reaction event handling
Introduced a callback to handle reaction events in the bot. This enhancement improves user interaction by allowing the bot to respond to reactions, broadening its capability beyond basic message and member events. No impact on existing functionality.
2024-11-08 09:31:36 +01:00
005a407d93
feat(bot): enhance communication during user operations
Added messages to notify the operator room when user invitation or kick actions fail, improving operator awareness. Included notifications to both the monitored and operator rooms when a room starts being monitored, enhancing transparency. Updated ticket terminology to "application" to better reflect the context. Also, added notification to customers when a moderator wishes to join their room, improving user interaction. This enhances clarity and communication efficiency within the application bot's operations.
2024-11-08 09:08:21 +01:00
c5acd76c0a
fix(bot): ensure command handling returns awaitables
Refactored command handling methods to return awaitables directly rather than awaiting them in place. This approach facilitates easier testing and future integration with event loop management strategies. Improves asynchronous function chaining and consistent handling of command execution results.
2024-11-08 08:28:53 +01:00
ac18806308
refactor(bot): improve code readability by reformatting
Refactor the ApplicationBot's methods for enhanced readability. This includes reformatting multiline structures and improving code consistency by adjusting indentation and ensuring uniform string formatting. These changes do not alter functionality but streamline future maintenance and readability. No functional impact or changes to logic were made.
2024-11-08 08:26:18 +01:00
ddc9b05fed
feat(bot): add help command for user and operator roles
Introduced a `help_command` method to provide users and operators with a list of available commands specific to their roles. This enhancement improves user experience by offering quick access to critical command information directly within the chat environment.
2024-11-08 08:25:48 +01:00
45e0f82285
refactor(bot): update ticket references to applications
Replaced occurrences of "ticket" with "application" within bot messages to better reflect the system's functionality focused on application processing rather than ticket management. This change clarifies the user instructions and aligns the terminology with the application's purpose. No functional behavior modifications were made.
2024-11-08 08:00:47 +01:00
64b4a28cef
refactor: rename project to matrix-applicationbot
Update project name and metadata from matrix-supportbot to
matrix-applicationbot to reflect new functionality of handling
space application requests. This includes changes in package
names, author information, and repository URLs to align with
the project's new identity. This helps avoid confusion and
provides clarity on the bot's purpose.
2024-11-08 07:55:29 +01:00
97cd4aeb2f
feat: rename and extend bot for application handling
Renamed the bot from "SupportBot" to "ApplicationBot" to reflect expanded functionality including room application management. Updated README to specify the fork's purpose and extended the bot with features like automated ticket creation for new members, application processing, and command handling for room monitoring and user access management. This enhances the bot's use case by supporting room access applications alongside support tickets.
2024-11-08 07:52:09 +01:00
f343b59cc6
docs: add badges for Matrix, PyPI, and latest commit
Enhanced the README with additional status badges for easier access to:
- Matrix community link
- PyPI package version and Python compatibility
- License information
- Latest Git commit

These additions improve visibility and accessibility of relevant project details for users and contributors.
2024-08-18 19:31:10 +02:00
79f1779ac3
fix(bot): correct ticket ID parsing logic
Adjusted ticket ID extraction to handle commands with three parts instead of two, ensuring proper ticket closure functionality. Updated project version to 0.1.2 to reflect the fix.
2024-08-18 19:24:11 +02:00
bf909c5efb
docs: update README with detailed features and usage
Expanded the README with comprehensive details about the bot's
capabilities, including its features, user and operator commands,
installation steps, and usage instructions. This enhances clarity
for new users and contributors on how to interact with and set
up the bot effectively.
2024-08-18 19:00:44 +02:00
ac2f18b021
chore: update .gitignore to include dist/ directory
Added dist/ directory to .gitignore to prevent distribution files from being tracked by Git. This keeps the repository clean and avoids unnecessary clutter from build artifacts.
2024-08-18 18:54:46 +02:00
14e8d44999
feat: improve bot functionality and logging setup
Enhanced the bot's functionality with several improvements:
- Added YAML dependency for configuration loading
- Introduced detailed logging for better monitoring
- Implemented invite event handling and operator check
- Updated error handling and user feedback messages
- Ensured the bot ignores its own messages

Increased the version to 0.1.1 to reflect these changes.
2024-08-18 18:53:59 +02:00
6447362d04
feat: add initial version of Matrix Support Bot
- Set up CI/CD workflow for Python package publishing to PyPI
- Add MIT License for project
- Create .gitignore file to exclude common Python and project files
- Document project purpose and licensing in README.md
- Add example configuration file (config.yaml.dist)
- Define package metadata and dependencies in pyproject.toml
- Implement SupportBot class for handling support tickets in Matrix
- Implement main script for bot execution and configuration loading

This initial commit establishes the structure and core functionality for the Matrix Support Bot project.
2024-08-18 17:33:56 +02:00