ejabberd - Comments for "MUC as back end" https://www.ejabberd.im/node/4665 en babbomaria wrote: A) rooms https://www.ejabberd.im/node/4665#comment-57273 <div class="quote-msg"> <div class="quote-author"><em>babbomaria</em> wrote:</div> <p>A) rooms has to be created only by bots is this possible? </p></div> <p>Yes, a bot can create a room.</p> <p>How to create a room: send a presence stanza to a non-existing room.<br /> <noindex><a href="http://xmpp.org/extensions/xep-0045.html#enter-muc" title="http://xmpp.org/extensions/xep-0045.html#enter-muc" rel="nofollow" >http://xmpp.org/extensions/xep-0045.html#enter-muc</a></noindex></p> <div class="quote-msg"> <div class="quote-author"><em>babbomaria</em> wrote:</div> <p>B) I'm not interested in old messages, </p></div> <p>Then configure:</p> <pre>{modules, [ {mod_muc, [ {history_size, 0}, ... ]}, ... ]}.</pre><div class="quote-msg"> <div class="quote-author"><em>babbomaria</em> wrote:</div> <p> so can i have problems with memory if I use non persistent room and 0 logging message with mod_muc_*? The question is related to the fact that bots never go out to the room</p> <p>C) It's a bit triky but can i send a message to evryone in the romm </p></div> <p>Yes: <noindex><a href="http://xmpp.org/extensions/xep-0045.html#message" title="http://xmpp.org/extensions/xep-0045.html#message" rel="nofollow" >http://xmpp.org/extensions/xep-0045.html#message</a></noindex></p> <div class="quote-msg"> <div class="quote-author"><em>babbomaria</em> wrote:</div> <p>and the Bot can reply only to me, is this correct. </p></div> <p>Yes: <noindex><a href="http://xmpp.org/extensions/xep-0045.html#privatemessage" title="http://xmpp.org/extensions/xep-0045.html#privatemessage" rel="nofollow" >http://xmpp.org/extensions/xep-0045.html#privatemessage</a></noindex></p> <div class="quote-msg"> <div class="quote-author"><em>babbomaria</em> wrote:</div> <p>D) how to avoid duplicate bot response on the same question for example i have BOT master and BOT backup, bot backup reply only when bot master is down? </p></div> <p>Idea: When master sees a question, it sends the response to the user and to the backup bot. If backup bot sees a question and receives no response from master in 10 seconds, then backup bot sends a response to the user.</p> Tue, 03 May 2011 14:33:43 +0000 mfoss comment 57273 at https://www.ejabberd.im