slight code cleanup; add 'buy' to keywords
This commit is contained in:
parent
43d4df272a
commit
638c847528
@ -12,7 +12,8 @@
|
|||||||
"meet",
|
"meet",
|
||||||
"upload",
|
"upload",
|
||||||
"login",
|
"login",
|
||||||
"send"
|
"send",
|
||||||
|
"buy"
|
||||||
],
|
],
|
||||||
"currencies":[
|
"currencies":[
|
||||||
"$", "£", "€",
|
"$", "£", "€",
|
||||||
|
@ -34,8 +34,7 @@ pub async fn restore_session(session_file: &Path) -> anyhow::Result<(Client, Opt
|
|||||||
|
|
||||||
let client = Client::builder()
|
let client = Client::builder()
|
||||||
.homeserver_url(client_session.homeserver)
|
.homeserver_url(client_session.homeserver)
|
||||||
.sled_store(client_session.db_path, Some(&client_session.passphrase))
|
.sled_store(client_session.db_path, Some(&client_session.passphrase))?
|
||||||
.unwrap()
|
|
||||||
.build()
|
.build()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
@ -61,7 +60,7 @@ pub async fn login(data_dir: &Path, session_file: &Path) -> anyhow::Result<Clien
|
|||||||
|
|
||||||
match client
|
match client
|
||||||
.login_username(&user, &password)
|
.login_username(&user, &password)
|
||||||
.initial_device_display_name("vcxz bot")
|
.initial_device_display_name("scam-police")
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user