[Standards] Commands in the context of a conversation

Lance Stout lancestout at gmail.com
Tue Mar 15 19:42:44 UTC 2016


> This smells quite a bit like XEP-0050 to me.  Perhaps like the following:
> 
> <message to="bot" from="user">
> 	<body>Hello, bot!</body>
> </message>
> 
> <message to="user" from="bot">
> 	<body>Welcome! What can I get you today?</body>
> 
> 	<query xmlns='http://jabber.org/protocol/disco#items' 
> 	      node='http://jabber.org/protocol/commands'>
> 		<item jid="bot" node="weather" name="Weather" />
> 		<item jid="bot" node="news" name="News" />
> 	</query>
> </message>

Yep. This is Section 2.3 of XEP-0050 (http://xmpp.org/extensions/xep-0050.html#announce)




More information about the Standards mailing list