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:
parent
284aa7dfd1
commit
849ecbd5dc
3 changed files with 14 additions and 22 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue