This bot demonstrates how to send image responses using the Vector SDK. It responds to any private direct message by fetching a cat image from an API and sending it as a response.
- Responds to private direct messages with cat images
- Demonstrates how to use external APIs with the Vector SDK
- Rust toolchain (stable version)
- Cargo package manager
- vector_sdk
- tokio
- reqwest
- serde_json
To start the bot, navigate to the project directory and run:
cd ImageResponse
cargo runFor release builds:
cargo build --release
cargo run --releasesrc/main.rs: Main entry point of the applicationCargo.toml: Project dependencies and configuration
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.