From 870414ac428451937391414c5053f3f091087f1b Mon Sep 17 00:00:00 2001 From: shibedrill <53824200+shibedrill@users.noreply.github.com> Date: Mon, 22 Apr 2024 22:45:58 -0400 Subject: [PATCH] formatting --- TODO.md | 3 ++- src/main.rs | 23 +++++++++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 9cf1457..2a555ea 100644 --- a/TODO.md +++ b/TODO.md @@ -1,4 +1,5 @@ # To Do + - Implement checks for deleted channels/users/messages in config files. - Find a better profile image. -- Add useful features. \ No newline at end of file +- Add useful features. diff --git a/src/main.rs b/src/main.rs index f663f94..ed7bf68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,7 +74,15 @@ async fn main() { // +---------------------------------------------------------+ // | ADD COMMANDS HERE | // +---------------------------------------------------------+ - commands: vec![age(), info(), add_channel(), remove_channel(), list_channels(), shutdown(), restart()], + commands: vec![ + age(), + info(), + add_channel(), + remove_channel(), + list_channels(), + shutdown(), + restart(), + ], initialize_owners: true, ..Default::default() }) @@ -107,7 +115,18 @@ async fn main() { .unwrap(); info!("Built client successfully"); - info!("Registered owner: {:?}", client.http.get_current_application_info().await.unwrap().owner.unwrap().name); + // List the owner + info!( + "Registered owner: {:?}", + client + .http + .get_current_application_info() + .await + .unwrap() + .owner + .unwrap() + .name + ); // Finally start everything. Nothing after this should be reachable normally. info!("Starting client");