bot: pass in Config as a parameter

In an attempt to pass in more stuff to the bot

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2026-01-08 22:23:55 +01:00
commit 849ecbd5dc
3 changed files with 14 additions and 22 deletions

View file

@ -56,11 +56,10 @@ async fn main() -> Result<(), Error> {
let (value_tx, value_rx) = mpsc::unbounded_channel::<Hook>();
let mut bot = XmppClient::new(
config.jid,
config.jid.clone(),
config.password.as_str(),
config.rooms,
config.nickname,
config.admins,
config.nickname.clone(),
config.clone(),
);
let xmpp_handle = tokio::task::spawn(async move {