From c9c880949f4958b782b806a67787d67f37f52b93 Mon Sep 17 00:00:00 2001 From: spla Date: Mon, 29 Aug 2022 12:52:30 +0200 Subject: [PATCH] Added setup attribute to EjabberdAPI library. Related to #3 --- xmpp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xmpp.py b/xmpp.py index 20fab7d..4ce8bbc 100644 --- a/xmpp.py +++ b/xmpp.py @@ -1,5 +1,5 @@ from akkomabot import Akkomabot -from ejabberdapi import Ejabberd +from ejabberdapi import Ejabberd, EjabberdAPIConfigError from akkoma import AkkomaNetworkError import sys @@ -9,9 +9,7 @@ if __name__ == '__main__': bot = Akkomabot() - ejabberd_secrets_file = 'secrets/ejabberd_secrets.txt' - - ejabberd = Ejabberd(ejabberd_secrets_file) + ejabberd = Ejabberd() try: