User:Imroflo/chat.js

//Rule book module and some Ping codes //Specific shortcuts, read my projects if you want one importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/Ditto-code&action=raw&ctype=text/javascript'); //SwearFree Filter, saves me from accidents importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/SwearFree&action=raw&ctype=text/javascript'); //Extra commands importScriptURI('http://botcentral.wikia.com/index.php?title=user:Ditto_Creeper_Bot/commands&action=raw&ctype=text/javascript'); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "/google";        if (this.value.indexOf(test) > -1 && this.value.indexOf(test) < 8) {            var query = this.value.replace('/google ', '');            var query = query.replace(/ /g, "+");            this.value = "http://www.lmgtfy.com/?q=" + query        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "/facedesk";        if (this.value.indexOf(test) > -1 && this.value.indexOf(test) < 8) {            var query = this.value.replace('/facedesk');            this.value = "/me = https://gph.to/1QdqzIp"        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = ";-;"; {            var query = this.value.replace(';-.','(•-•)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = ":3"; {            var query = this.value.replace(':-3','◕‿‿◕');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = ";v"; {            var query = this.value.replace(';v','¯\\_(ツ)_/¯');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "p-p"; {            var query = this.value.replace('p-p','(づ｡◕‿‿◕｡)づ');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "justchillin"; {            var query = this.value.replace('justchillin','(─‿‿─)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "flwrme"; {            var query = this.value.replace('flwrme','(✿◠‿◠) ');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "perfecto"; {            var query = this.value.replace('perfecto','(͠≖ ͜ʖ͠≖)👌');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "ugotis"; {            var query = this.value.replace('ugotis','👍(≖‿‿≖👍)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "suck"; {            var query = this.value.replace('suck','succ');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "youaremyheart"; {            var query = this.value.replace('youaremyheart','✨(っ◔︣◡◔᷅)っc(◕︣◡◕᷅c)✨');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "whydidyou"; {            var query = this.value.replace('whydidyou','ಥ_ಥ');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "ihavenothing"; {            var query = this.value.replace('ihavenothing','(╥﹏╥)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "wutthe"; {            var query = this.value.replace('wutthe','( ≖.≖)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "WHYWOULDYOUDOTHAT"; {            var query = this.value.replace('WHYWOULDYOUDOTHAT','(´༎ຶД༎ຶ`)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "whattheflip"; {            var query = this.value.replace('whattheflip','(ノಠ益ಠ)ノ彡┻━┻');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "puttinthetable"; {            var query = this.value.replace('puttinthetable','┬─┬ノ( º _ ºノ)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "upthere"; {            var query = this.value.replace('upthere','(°ロ°)☝');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "usrightnow"; {            var query = this.value.replace('usrightnow','(._.) ( l: ) ( .-. ) ( :l ) (._.)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "wth"; {            var query = this.value.replace('whattheheck','⚆ _ ⚆');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "mewalkin"; {            var query = this.value.replace('mewalkin','♪~ ᕕ(ᐛ)ᕗ');           this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "adventuretimeme"; {            var query = this.value.replace('adventuretimeme','| (• ◡•)| (❍ᴥ❍ʋ)');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "/hello";        if (this.value.indexOf(test) > -1 && this.value.indexOf(test) < 8) {            var query = this.value.replace('/hello', '');            this.value = "Hello " + query + ' and welcome to ' + wgSiteName + ' chat!';        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "/welcome";        if (this.value.indexOf(test) > -1 && this.value.indexOf(test) < 8) {            var query = this.value.replace('/welcome', '');            this.value = "Hello " + query + ' and welcome to Wikia! No doubt you\'re new :3 I am ' + $(".User .username").html + ', happy to be of assistance to you \\o/';        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "/wb";        if (this.value.indexOf(test) > -1 && this.value.indexOf(test) < 8) {            var query = this.value.replace('/wb', '');            this.value = "Welcome back " + query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "papytext"; {            var query = this.value.replace('papytext','[font="Papyrus"]');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "invitext"; {            var query = this.value.replace('invitext','[c="transparent"]');            this.value = query;        }    } }); ///From here $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = " "; {            var query = this.value.replace(' ', '');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = " "; {            var query = this.value.replace(' ', '');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = " "; {        var query = this.value.replace(' ','[/c]');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = " "; {            var query = this.value.replace('','"]');            this.value = query;        }    } });