Skip to content

bot reading from file and posting new status to mastodon

Notifications You must be signed in to change notification settings

SaumilP/mastodon-toot-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mastodon-toot-client Build Status

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.

Installation

To compile and execute this client below steps can be taken.

  1. Create a new botsin.space account.
  2. Use Access Token Generator for Mastodon API.
  3. Create or Update .env file with extracted relevant tokens.
  4. build rust-lang application using cargo build or cargo release.
  5. On successful built, Run cargo run --bin main to test out logic to retrieve random location.
  6. Run cargo test to execute test cases from lib.rs.
  7. To send toot, Run ./target/debug/toot or ./target/release/toot.

Pre-requisite

Make sure cargo is installed before attempting to build this client.

Snippets

Alt text

Alt text

About

bot reading from file and posting new status to mastodon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages