Bots Home
|
Create an App
notice bug report
Author:
nicky7282
Description
Source Code
Launch Bot
Current Users
Created by:
Nicky7282
/*///////////////////////////////////////////////////////////////////////////////////////// // chatNotice VERSUS sendNotice BUG REPORT // by nicky7282 // email: druixure@yahoo.com twitter: @nicky7282 // // Description: When using sendNotice to send Unicode characters, they are not displayed // properly. They seem to be split into surrogates. Unicode characters display // correctly with the older, deprecated cb.chatNotice method instead. // // Why is this important? // Mobile platforms increase emoji (unicode) usage. They are used more often. *////////////////////////////////////////////////////////////////////////////////////////// var emoji = "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"+ //😋😋😋 "\u{1F60B}\u{1F60B}\u{1F60B}"; //😋😋😋 cb.onMessage(function (msg) { if (msg.m.charAt(0) == '/'){ var word = msg.m.split(' '); word[0] = word[0].toLowerCase(); if (word[0] == '/sendnotice'){ cb.sendNotice(emoji, '', '', '', ''); return msg; } else if (word[0] == '/chatnotice'){ cb.chatNotice(emoji, '', '', '', ''); return msg; } } return msg; });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.