Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * @package AJAX_Chat
- * @author Sebastian Tschan
- * @copyright (c) Sebastian Tschan
- * @license Modified MIT License
- * @link https://blueimp.net/ajax/
- */
- // Overriding client side functionality:
- /*
- // Example - Overriding the replaceCustomCommands method:
- ajaxChat.replaceCustomCommands = function(text, textParts) {
- return text;
- }
- */
- // example - welcome message:
- ajaxChat.customInitialize = function() {
- ajaxChat.addChatBotMessageToChatList('<h1>\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0WELCOME TO PSHOME4LIFE SHOTBOX...\n\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 PLEASE BE RESPECTFUL AND FOLLOW OUR RULES...\n\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 THANK YOU, PSHOME4LIFE STAFF! :)</h1> ');
- }
- //Replace stuff people say:
- ajaxChat.replaceCustomText = function(text) {
- text=text.replace(/fuck/gi, 'frick');
- text=text.replace(/fucker/gi, 'fricker');
- text=text.replace(/fucking/gi, 'fricking');
- text=text.replace(/mutherfucker/gi, 'motherlover');
- text=text.replace(/shit/gi, 'sheet');
- text=text.replace(/bitch/gi, 'deva');
- text=text.replace(/cock/gi, 'wanker');
- text=text.replace(/dick/gi, 'twig');
- text=text.replace(/pussy/gi, 'twit');
- text=text.replace(/cunt/gi, 'twat');
- text=text.replace(/nigger/gi, 'I am ignorant');
- text=text.replace(/nigga/gi, 'I am ignorant');
- text=text.replace(/niqqa/gi, 'I am ignorant');
- text=text.replace(/nicca/gi, 'I am ignorant');
- text=text.replace(/asshole/gi, 'bunghole');
- return text;
- }
- ajaxChat.replaceCustomCommands = function(text, textParts) {
- switch(textParts[0]) {
- case '/takeover':
- text=text.replace('/takeover', ' ');
- return '<span class="chatBotMessage">' + text + '</span>';
- default:
- return text;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement