Commit graph

4 commits

Author SHA1 Message Date
390db18623
feat: add CLI config support and script entry
Introduced command-line argument parsing to allow specifying configuration file paths, enhancing the tool's flexibility for different environments. Additionally, integrated a script entry in pyproject.toml to facilitate direct execution of the bridge, improving usability. The bridge now correctly initializes the matrix client, ensuring proper operation. These changes make deployment and configuration more straightforward, adaptable to user needs.

- Command-line arguments for custom config paths.
- Script entry for easier execution.
- Fixed matrix client initialization in the bridge.
2024-05-20 11:57:12 +02:00
4f13125c4e
feat: Add bridge config template
Introduced a new template for the bridge configuration in the matrix_double_puppeting_bridge project, defining necessary parameters such as homeserver details, appservice information, and external service integration. This template lays the groundwork for customizable bridge deployment. Updated the `.gitignore` to track the default configuration files, ensuring they are version-controlled for template consistency and ease of updates.

This change facilitates the initial setup process for users by providing a clear and structured configuration file template. It is a step towards simplifying the deployment and customization of the bridge, making it more accessible for administrators to integrate their services with the Matrix protocol.
2024-05-20 11:50:49 +02:00
70a8fec347
feat: integrate external service bridge
Removed direct handling of matrix events in the __main__.py file and moved event handling and startup logic to the ExampleBridge.start method. This change enables the bridge to not only listen and respond to Matrix events but also to handle messages from an external service, creating a two-way communication bridge. The inclusion of a configuration management system via the BridgeConfig class allows for dynamic and secure token handling as well as customizable settings for the homeserver, appservice, and external service integration. This setup lays the foundation for more complex interactions and integrations between Matrix and external services, offering a flexible and scalable solution for future development.

- Introduced a new configuration management system for dynamic settings
- Enabled two-way communication between Matrix and an external service
- Streamlined the initialization and event handling processes for clarity and efficiency
2024-05-20 11:50:15 +02:00
7eba27ea9e
feat: Initialize Matrix double puppeting bridge project
Introduced the scaffolding for a Matrix double puppeting bridge, including essential configuration and basic operational logic. The setup encompasses the .gitignore additions to exclude environment and build files, inclusion of LICENSE and README for legal and project outlining, respectively, and foundational project structure in pyproject.toml for package management. Core functionality to relay messages between Matrix and an external service is established, with stubs for extending the bridge's capabilities. This groundwork lays the foundation for further development and experimentation with the Matrix API and double puppeting mechanisms, illustrating a preliminary model for bi-directional communication bridges.
2024-05-16 10:10:19 +02:00