fixed
This commit is contained in:
parent
6e5a3ed94e
commit
d5a6e2e38d
|
@ -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<Mastodon> {
|
||||
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?;
|
||||
|
|
Loading…
Reference in New Issue