c3d2-web/content/static/candy/plugins/notifyme
2015-07-22 01:01:23 +02:00
..
candy.css candy 2.0 + plugins 2015-07-22 01:01:23 +02:00
candy.js 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

Notify me plugin

This plugin will notify users when their names are mentioned and prefixed with a specific token

Usage

<script type="text/javascript" src="path_to_plugins/notifyme/candy.js"></script>
<link rel="stylesheet" type="text/css" href="path_to_plugins/notifyme/candy.css" />

...

CandyShop.NotifyMe.init();

Configuration options

nameIdentifier - String - The identifier to look for in a string. Defaults to '@'

playSound - Boolean - Whether to play a sound when the username is mentioned. Defaults to true

highlightInRoom - Boolean - Whether to highlight the username when it is mentioned. Defaults to true

normalizeNickname - Boolean - Whether to normalize the casing of the nickname to the way you entered it. Otherwise, leave the casing as the sender wrote it. Defaults to true

Example configurations

// Highlight my name when it's prefixed with a '+'
CandyShop.NotifyMe.init({
    nameIdentifier: '+',
    playSound: false
});

// Highlight and play a sound if my name is prefixed with a '-'
CandyShop.NotifyMe.init({
    nameIdentifier: '-'
});