generate fmt::Display for Config
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
dda27ffcb1
commit
9ab381e4eb
3 changed files with 63 additions and 435 deletions
|
@ -22,8 +22,8 @@ pub(super) async fn uptime(&self) -> Result<RoomMessageEventContent> {
|
|||
pub(super) async fn show_config(&self) -> Result<RoomMessageEventContent> {
|
||||
// Construct and send the response
|
||||
Ok(RoomMessageEventContent::text_markdown(format!(
|
||||
"```\n{}\n```",
|
||||
self.services.globals.config
|
||||
"{}",
|
||||
self.services.server.config
|
||||
)))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue