formatting

This commit is contained in:
shibedrill 2024-04-22 22:45:58 -04:00
parent 731f8ee5f8
commit 870414ac42
2 changed files with 23 additions and 3 deletions

View File

@ -1,4 +1,5 @@
# To Do # To Do
- Implement checks for deleted channels/users/messages in config files. - Implement checks for deleted channels/users/messages in config files.
- Find a better profile image. - Find a better profile image.
- Add useful features. - Add useful features.

View File

@ -74,7 +74,15 @@ async fn main() {
// +---------------------------------------------------------+ // +---------------------------------------------------------+
// | ADD COMMANDS HERE | // | 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, initialize_owners: true,
..Default::default() ..Default::default()
}) })
@ -107,7 +115,18 @@ async fn main() {
.unwrap(); .unwrap();
info!("Built client successfully"); 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. // Finally start everything. Nothing after this should be reachable normally.
info!("Starting client"); info!("Starting client");