diff --git a/src/main.rs b/src/main.rs index 425c555..3ffa9c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,18 +16,19 @@ async fn main() -> Result<()> { register().await? }; +/* let data = Data::default(); let client = Mastodon::from(data); let statuses = client.statuses(&AccountId::new("user-id"), Default::default()).await.unwrap(); dbg!(statuses); -/* +*/ match get_next_url() { Some(url) => { post_image(&mastodon, &url).await; update_bio(&mastodon).await; }, None => post(&mastodon, "@Sugui@awoo.fai.st @MeDueleLaTeta@awoo.fai.st me quedé sin chicas").await - };*/ + }; Ok(()) } @@ -103,7 +104,7 @@ async fn fetch_url(url: String, file_name: String) -> Result<()> { async fn register() -> Result { let registration = Registration::new("https://awoo.fai.st") .client_name("sleeping-girls-bot") - .scopes(Scopes::all()) + .scopes(Scopes::write(scopes::Write::Accounts)) .build() .await?; let mastodon = cli::authenticate(registration).await?;