Remove unused config
This commit is contained in:
parent
c66a0674c0
commit
53a4aa0a4a
2 changed files with 2 additions and 13 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
[angel]
|
[angel]
|
||||||
jid = angel@example.com
|
jid = angel@example.com
|
||||||
owner = admin@example.com
|
|
||||||
password = b0TPA55W0rD
|
password = b0TPA55W0rD
|
||||||
autojoin = room1@muc.example.com room2@muc.example.com room3@muc.example.com
|
autojoin = room1@muc.example.com room2@muc.example.com room3@muc.example.com
|
||||||
14
main.py
14
main.py
|
|
@ -208,17 +208,8 @@ class AngelBot(ClientXMPP):
|
||||||
print(e)
|
print(e)
|
||||||
return
|
return
|
||||||
|
|
||||||
def __init__(
|
def __init__(self, jid, password, nick="angel", autojoin=None):
|
||||||
self,
|
|
||||||
jid,
|
|
||||||
password,
|
|
||||||
owner,
|
|
||||||
nick="angel",
|
|
||||||
prefix="!",
|
|
||||||
autojoin=None,
|
|
||||||
):
|
|
||||||
ClientXMPP.__init__(self, jid, password)
|
ClientXMPP.__init__(self, jid, password)
|
||||||
self.owner = owner
|
|
||||||
self.jid = jid
|
self.jid = jid
|
||||||
self.prefix = prefix
|
self.prefix = prefix
|
||||||
self.nick = nick
|
self.nick = nick
|
||||||
|
|
@ -309,10 +300,9 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
jid = config["angel"]["jid"]
|
jid = config["angel"]["jid"]
|
||||||
password = config["angel"]["password"]
|
password = config["angel"]["password"]
|
||||||
owner = config["angel"]["owner"]
|
|
||||||
autojoin = config["angel"]["autojoin"].split()
|
autojoin = config["angel"]["autojoin"].split()
|
||||||
|
|
||||||
bot = AngelBot(jid, password, owner, autojoin=autojoin)
|
bot = AngelBot(jid, password, autojoin=autojoin)
|
||||||
|
|
||||||
bot.connect()
|
bot.connect()
|
||||||
bot.process()
|
bot.process()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue