aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/examples/example.rs
diff options
context:
space:
mode:
Diffstat (limited to 'filamento/examples/example.rs')
-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);
}