formatting
This commit is contained in:
parent
731f8ee5f8
commit
870414ac42
3
TODO.md
3
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.
|
||||
- Add useful features.
|
||||
|
23
src/main.rs
23
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");
|
||||
|
Loading…
Reference in New Issue
Block a user