c3d2-web/content/static/candy/plugins/me-does
2015-07-22 01:01:23 +02:00
..
candy.js candy 2.0 + plugins 2015-07-22 01:01:23 +02:00
me-does-screenshot.png candy 2.0 + plugins 2015-07-22 01:01:23 +02:00
README.md candy 2.0 + plugins 2015-07-22 01:01:23 +02:00

/me Does

Format /me messages, implementing XEP-0245

Usage

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

Color Picker

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.