User:PuffleBot v3/chat.js

//Full credit to Play10 for the chat code.

var changeLogInterval = function{ $(' ', {       text: 'Change Log Interval',        style: 'bottom:55px',        onclick: 'logInterval = parseInt(prompt("Change " + logInterval + " milliseconds to what?", 120000))'    }).appendTo(".Rail"); } importScriptPage('User:Joeytje50/ChatLogger.js', 'rs'); importScriptPage('MediaWiki:Chat.js/ChatHacks.js', 'pvzcc'); changeLogInterval; // Console Log console.log('Loaded: User:The Golden Puffle/chat.js'); /** * Chat slash commands. * @author: Shining-Armor (now Lil' Miss Rarity) */ $('[name="message"]').keypress(function (e) {   if (e.which === 32 || e.which === 13) {        switch (this.value) {        // START ORIGINAL COMMANDS SECTION        case ';owner':            this.value = 'I am the bot of PuffleReturns.';            break;        case ';pls':            this.value = 'Pls';            break;        case ';sezyou':            this.value = 'Says the Angry Bird.';            break;        case ';login':            this.value = 'Pls, I am already online';            break;        case ';Puffle':            this.value = 'There are 2 emoji(s) for "Puffle." (puffle) (superpuffle)';            break;        case ';test':            this.value = 'This is a test message';            break;        case ';coolstory':            this.value = 'Cool story bro.';            break;        case ';what':            this.value = 'uhjbhghxbgnjukizkufvkhjadbfnka'; break; case ';bloop': this.value = 'bloop'; break; case ';contribs': this.value = 'View the contributions of Puffle here'; break; case ';ismycomputeron': this.value = 'Yes.'; break; case ';rektbytornado': this.value = '[img="i.imgur.com/etiruCE.png"]'; break; case ';duckpun': this.value = 'DUCKS QUACK ME UP'; break; case ';quit': this.value = 'Nice try m8'; break; case ';failicia': this.value = 'No you are a failicia!'; break; case ';doge': this.value = 'much hurricane very typhoon wow'; break; case ';hello': this.value = 'Hello there!'; break; case ';stop': this.value = 'Please do not do that.'; break; case ';wow': this.value = 'Wow! That is amazing!'; break; case ';kden': this.value = 'mkay den'; break; case ';SM': this.value = 'SM pls'; break; case ';play10': this.value = 'Play10 pls'; break; case ';emoji': this.value = '(superpuffle)'; break; case ';gday': this.value = 'Good day, mate!'; // END ORIGINAL COMMANDS SECTION }   } });