Closed Nevon closed 10 years ago
Currently the nickname for the robot is just the jid minus the host. It would be nicer if we set the bot nickname to @robot.name.
@robot.name
As far as I know, you just need to add a ´nick´ element to your ´presence´ element, like so:
new Xmpp.Element('presence').c('nick', {'xmlns': 'http://jabber.org/protocol/nick'}).t(@robot.name)
Seems reasonable to me.
Currently the nickname for the robot is just the jid minus the host. It would be nicer if we set the bot nickname to
@robot.name
.As far as I know, you just need to add a ´nick´ element to your ´presence´ element, like so: