def METHOD_NAME(self, event):
    self.send_presence()
    self.get_roster()
    for recipient in self.recipients:
        self.send_message(mto=recipient, mbody=self.msg, mtype="chat")
    for room in self.rooms:
        self.plugin["xep_0045"].joinMUC(room, self.nick, wait=True)
        self.send_message(mto=room, mbody=self.msg, mtype="groupchat")
    self.disconnect(wait=True)