This plugin will notify users when their names are mentioned and prefixed with a specific token
<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();
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
// 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: '-'
});