add nick to config
This commit is contained in:
parent
8d3b290106
commit
494fc21f35
2 changed files with 8 additions and 3 deletions
8
main.py
8
main.py
|
|
@ -292,6 +292,10 @@ class AngelBot(ClientXMPP):
|
|||
vcard = self.plugin["xep_0054"].make_vcard()
|
||||
|
||||
vcard["URL"] = "https://gt.kalli.st/czar/angel"
|
||||
vcard["DESC"] = "Angel is a bot that can do link previews and embeds."
|
||||
vcard["NICKNAME"] = "Angel"
|
||||
vcard["FN"] = "Angel"
|
||||
vcard["PHOTO"] = info
|
||||
|
||||
asyncio.gather(self.plugin["xep_0054"].publish_vcard(vcard))
|
||||
|
||||
|
|
@ -356,8 +360,8 @@ if __name__ == "__main__":
|
|||
jid = config["angel"]["jid"]
|
||||
password = config["angel"]["password"]
|
||||
autojoin = config["angel"]["autojoin"].split()
|
||||
|
||||
bot = AngelBot(jid, password, nick="angel-from-overworld", autojoin=autojoin)
|
||||
nick = config["angel"]["nick"]
|
||||
bot = AngelBot(jid, password, nick=nick, autojoin=autojoin)
|
||||
|
||||
bot.connect()
|
||||
bot.process(forever=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue