This is an attempt to build mastodon tooter client in rust-lang. It reads random location from given file and constructs message with geographical location before tooting to dedicated target mastodon channel.
To compile and execute this client below steps can be taken.
- Create a new
botsin.space
account. - Use Access Token Generator for Mastodon API.
- Create or Update
.env
file with extracted relevant tokens. - build rust-lang application using
cargo build
orcargo release
. - On successful built, Run
cargo run --bin main
to test out logic to retrieve random location. - Run
cargo test
to execute test cases fromlib.rs
. - To send toot, Run
./target/debug/toot
or./target/release/toot
.
Make sure cargo
is installed before attempting to build this client.