Format /me messages, implementing XEP-0245
Include the JavaScript file:
<script type="text/javascript" src="candyshop/me-does/candy.js"></script>
Call its init()
method after Candy has been initialized:
Candy.init('/http-bind/', {});
// enable /me handling
CandyShop.MeDoes.init();
Candy.Core.connect();
Now all messages starting with '/me 'will use infoMessage formatting.
/me takes screenshot
Please note: As me-does
reroutes message output, it's call to init()
should happen after the init()
of most other plugins, including, inline-images
.