aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/examples
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-04-03 03:41:38 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-04-03 03:41:38 +0100
commit91f1994af940085d5d475a97820900ebbf0eb553 (patch)
tree6aab872f71d17a785d3d9286742fef38983d274c /filamento/examples
parent9ce3827a7d25714d17f266f0f50bb29f41090175 (diff)
downloadluz-91f1994af940085d5d475a97820900ebbf0eb553.tar.gz
luz-91f1994af940085d5d475a97820900ebbf0eb553.tar.bz2
luz-91f1994af940085d5d475a97820900ebbf0eb553.zip
feat: better message handling, pep publish, xep_0172: nick
Diffstat (limited to 'filamento/examples')
-rw-r--r--filamento/examples/example.rs33
1 files changed, 28 insertions, 5 deletions
diff --git a/filamento/examples/example.rs b/filamento/examples/example.rs
index 506d698..74a9aa1 100644
--- a/filamento/examples/example.rs
+++ b/filamento/examples/example.rs
@@ -21,6 +21,8 @@ async fn main() {
client.connect().await.unwrap();
tokio::time::sleep(Duration::from_secs(5)).await;
+ info!("changing nick");
+ client.change_nick("britney".to_string()).await.unwrap();
info!("sending message");
client
.send_message(
@@ -32,9 +34,30 @@ async fn main() {
.await
.unwrap();
info!("sent message");
- info!("sending disco query");
- let info = client.disco_info(None, None).await.unwrap();
- info!("got disco result: {:#?}", info);
- let items = client.disco_items(None, None).await.unwrap();
- info!("got disco result: {:#?}", items);
+ tokio::time::sleep(Duration::from_secs(5)).await;
+ // info!("sending disco query");
+ // let info = client.disco_info(None, None).await.unwrap();
+ // info!("got disco result: {:#?}", info);
+ // let items = client.disco_items(None, None).await.unwrap();
+ // info!("got disco result: {:#?}", items);
+ // let info = client
+ // .disco_info(Some("blos.sm".parse().unwrap()), None)
+ // .await
+ // .unwrap();
+ // info!("got disco result: {:#?}", info);
+ // let items = client
+ // .disco_items(Some("blos.sm".parse().unwrap()), None)
+ // .await
+ // .unwrap();
+ // info!("got disco result: {:#?}", items);
+ // let info = client
+ // .disco_info(Some("pubsub.blos.sm".parse().unwrap()), None)
+ // .await
+ // .unwrap();
+ // info!("got disco result: {:#?}", info);
+ // let items = client
+ // .disco_items(Some("pubsub.blos.sm".parse().unwrap()), None)
+ // .await
+ // .unwrap();
+ // info!("got disco result: {:#?}", items);
}