I am currently writing a XMPP bot using xmpp4r
(Ruby) but when it sends a message to a user using the same XMPP server, it does not deliver to the user. My condition is:
Is this possible, or what can I do to send message from bot?
It is certainly possible (and intended behavior) to deliver messages to XMPP entities where the sending entity has a subscription state of 'none'.
I suggest you have a look at the server logs or listen for error messages to determine why the message isn't delivered.