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