Commit graph

18 commits

Author SHA1 Message Date
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