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");