]> PatchyGit - angel.git/commitdiff
Remove unused config
authorKylie Czar <czar@kalli.st>
Sun, 16 May 2021 21:47:44 +0000 (18:47 -0300)
committerKylie Czar <czar@kalli.st>
Sun, 16 May 2021 21:47:44 +0000 (18:47 -0300)
config.ini.default
main.py

index 3a7ee43..89a666c 100644 (file)
@@ -1,5 +1,4 @@
 [angel]
 jid = angel@example.com
-owner = admin@example.com
 password = b0TPA55W0rD
 autojoin = room1@muc.example.com room2@muc.example.com room3@muc.example.com
\ No newline at end of file
diff --git a/main.py b/main.py
index a34ba43..39ba1a2 100644 (file)
--- a/main.py
+++ b/main.py
@@ -208,17 +208,8 @@ class AngelBot(ClientXMPP):
             print(e)
             return
 
-    def __init__(
-        self,
-        jid,
-        password,
-        owner,
-        nick="angel",
-        prefix="!",
-        autojoin=None,
-    ):
+    def __init__(self, jid, password, nick="angel", autojoin=None):
         ClientXMPP.__init__(self, jid, password)
-        self.owner = owner
         self.jid = jid
         self.prefix = prefix
         self.nick = nick
@@ -309,10 +300,9 @@ if __name__ == "__main__":
 
     jid = config["angel"]["jid"]
     password = config["angel"]["password"]
-    owner = config["angel"]["owner"]
     autojoin = config["angel"]["autojoin"].split()
 
-    bot = AngelBot(jid, password, owner, autojoin=autojoin)
+    bot = AngelBot(jid, password, autojoin=autojoin)
 
     bot.connect()
     bot.process()