ejabberd - Comments for "muc / Shared roster group " https://www.ejabberd.im/node/4920 en anyways... to get neutron to https://www.ejabberd.im/node/4920#comment-57803 <p>anyways... to get neutron to forward a chat msg to multiple users.. </p> <p>In config.txt I added a variable for the users I want to forward too... </p> <p>'FORWARD': ['user1','user2','user3',USERNAME],</p> <p>I butchered neutron.py a little... </p> <pre> def msg(target, body): # msg = xmpp.Message(target, body) for f in FORWARD: msg = xmpp.Message(f+'@'+SERVER,body) if GROUPCHATS.has_key(target): msg.setType('groupchat') else: msg.setType('chat') JCON.send(msg) call_outgoing_message_handlers(target, body) def smsg(type, source, body): if type == 'public': msg(source[1], source[2] + ': ' + body) elif type == 'private': # msg(source[0], body) if not source[0] == source[1]: msg(source[0], source[1] + ': ' + body ) I also created a new plug-in fwd_plugin.py based on log_plugin.py #$ neutron_plugin 01 import re ###################### def fwd_handler_message(type, source, body): reply = str(body) smsg(type, source, reply) def fwd_handler_outgoing_message(target, body): reply = body type = 'chat' smsg(type, target, reply) register_message_handler(fwd_handler_message) register_outgoing_message_handler(fwd_handler_outgoing_message) </pre> Mon, 29 Aug 2011 17:55:00 +0000 michaedi comment 57803 at https://www.ejabberd.im Thanks badlop for helping me https://www.ejabberd.im/node/4920#comment-57789 <p>Thanks badlop for helping me and pointing me in the right direction... </p> <p>What I've written so far is embarrassing.. you would be like.. omg... but I will post it once it gets cleaned up and tested a little.. :) </p> <p>thanks<br /> David Michaels..</p> Thu, 25 Aug 2011 19:11:07 +0000 michaedi comment 57789 at https://www.ejabberd.im I suppose Neutron does not https://www.ejabberd.im/node/4920#comment-57784 <p>I suppose Neutron does not support that feature. But you can implement it.</p> <p>You can also search and test other XMPP bots.</p> Wed, 24 Aug 2011 17:55:58 +0000 mfoss comment 57784 at https://www.ejabberd.im Thank you so much for https://www.ejabberd.im/node/4920#comment-57783 <p>Thank you so much for pointing me in a direction... </p> <p>Are you saying... Neutron will forward messages to the tech accounts? Or are you saying that I should look at customizing Neutron to do this.. ? </p> <p>thanks<br /> dm</p> Wed, 24 Aug 2011 16:46:08 +0000 michaedi comment 57783 at https://www.ejabberd.im michaedi wrote: A) Should I https://www.ejabberd.im/node/4920#comment-57771 <div class="quote-msg"> <div class="quote-author"><em>michaedi</em> wrote:</div> <p>A) Should I try and create a "single" Tech support user and have multiple people use that account?<br /> Will there be issues with detecting presence? (sorry if thats a stupid idea) </p></div> <p>Multiple clients can login to the same Jabber account at the same time, if each client picks a different "resource". But this won't solve your problem, because ejabberd only sends the messages to the client with higher priority of all the connected to an account.</p> <div class="quote-msg"> <div class="quote-author"><em>michaedi</em> wrote:</div> <p>B) Should I try and create a "Chat room" for the Tech users and put that room in the "Displayed Group" of the Users "Shared Roster Groups" </p></div> <p>Users can only send messages to a room if they are occupants of the room. And you don't want all your users to join the Tech room, right?</p> <p>C) Similar to B, but: a user with some problem joins the Tech room to chat with the tech guys.</p> <p>D) Register an account called "techbot". Develop or customize a program that logins to that account (example: Neutron is written in Python), and does this: for each received message, the bot forwards it to the list of tech accounts). Add that techbot account to all the users rosters with shared_roster.</p> Tue, 23 Aug 2011 11:27:13 +0000 mfoss comment 57771 at https://www.ejabberd.im