mirror of
https://github.com/mightyBroccoli/xmpp-chatbot.git
synced 2024-12-04 14:23:36 +01:00
+ added ability to join multiple rooms
This commit is contained in:
parent
c3596c3b84
commit
abbbb88191
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -42,7 +42,9 @@ class QueryBot(slixmpp.ClientXMPP):
|
|||
self.get_roster()
|
||||
|
||||
# If a room password is needed, use: password=the_room_password
|
||||
self.plugin['xep_0045'].join_muc(self.room, self.nick, wait=True)
|
||||
for rooms in self.room.split(sep=","):
|
||||
self.plugin['xep_0045'].join_muc(rooms, self.nick, wait=True)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def precheck(line):
|
||||
|
|
Loading…
Reference in a new issue