Add config setting controlling if a self-introduction message is posted after joining a room

Fixes https://github.com/etkecc/baibot/issues/32
This commit is contained in:
Slavi Pantaleev
2025-02-26 20:30:02 +02:00
parent 1ff7e8cf79
commit c051da2f4a
7 changed files with 49 additions and 0 deletions

View File

@@ -140,6 +140,10 @@ impl Bot {
&self.inner.config.command_prefix
}
pub(crate) fn post_join_self_introduction_enabled(&self) -> bool {
self.inner.config.room.post_join_self_introduction_enabled
}
pub(crate) fn homeserver_name(&self) -> &str {
&self.inner.config.homeserver.server_name
}