This bot demonstrates how to join and listen to MLS (Messaging Layer Security) group conversations using the Vector SDK. It handles private direct messages, group messages, and various commands.
- Handles private direct messages
- Joins and listens to MLS group conversations
- Supports commands like
/helpand/cat - Sends reactions, typing indicators, and images
- Rust toolchain (stable version)
- Cargo package manager
- vector_sdk (local version in Vector-SDK directory)
- tokio
- reqwest
- serde_json
To start the bot, navigate to the project directory and run:
cd Group/JoinAndMultiCommand
cargo runFor release builds:
cargo build --release
cargo run --releaseThe bot uses a hardcoded private key for demonstration purposes. In production, you should:
- Generate your own keys using
Keys::generate() - Store the private key securely
- Use environment variables or configuration files for sensitive data
The bot supports several commands that can be sent as private messages or in group chats:
/help: Display available commands/cat: Get a random cat image
src/main.rs: Main entry point of the applicationCargo.toml: Project dependencies and configurationVector-SDK/: Local version of the Vector SDK
Contributions are welcome! Please feel free to submit issues or pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.