You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.1 KiB

(function(){"use strict";const{makeLogger:i}=demon.summon("utils/logger"),{after:l}=demon.summon("patcher"),{findByProps:u}=demon.summon("modules/webpack"),n=i(console.log,"TestPlug"),r={wtf:"what the fuck",wth:"what the hell",lmao:"*laughing my ass off*",lmfao:"*laughing my fucking ass off*",lol:"*laughing out loud*",wdym:"what do you mean",ltr:"left to right",rtl:"right to left",wym:"what you mean",ikr:"i know right",lmk:"let me know",ofc:"of course",brb:"be right back",btw:"by the way",b4:"before",ofc:"of course",bff:"best friends forever",afaik:"as far as i know",afk:"away from keyboard",ttyl:"talk to you later",gtg:"got to go",tho:"though",smh:"shaking my head",tbh:"to be honest",bruv:"brother",ty:" thank you",ngl:" not gonna lie","ig ":" i guess ",ig:" i guess",rtfm:"read the freaking manual",u:"you",r:"are",ur:"your",uw:"you are welcome",uwot:"what do you mean",ok:"okay","ok.":"okay.","ok?":"okay?","ok!":"okay!","ok,":"okay,",i:"I","i?":"I?","i!":"I!","i.":"I.","i,":"I,",im:"I am",Im:"I am",doesnt:"does not",dont:"do not",didnt:"did not",cant:"can not",cannot:"can not",wont:"will not",aint:"is not",lets:"let us",thats:"that is",wouldnt:"would not",couldnt:"could not",shouldnt:"should not",fuck:"freak",shitty:"poopy",shit:"poop",damn:"darn",dammit:"darn it",cock:"pipe",dick:"pipe",penis:"pipe",your:"you are",isnt:"is not",idk:"I do not know"},a=o=>{o=o.split(" ");for(let t=0;t<o.length;t++)for(let e in r)o[t]===e&&(o[t]=r[e]);return o=o.join(" "),o.replace("~~","").slice(-1)!=="."&&o.replace("~~","").slice(-1)!=="!"&&o.replace("~~","").slice(-1)!=="?"&&o[0]!==":"&&o.replace("~~","").slice(-1)!==":"&&(o+="."),o.replace("~~","")[0]!==o.replace("~~","").toUpperCase()[0]&&(o=o.charAt(0).toUpperCase()+o.slice(1)),o.replace("Https://","https://")};function c(){return n(["Plugins","Grammar Nazi"],"Started plugin."),{unpatch:l("sendMessage",u("sendMessage"),o=>{const t=o[1].content;o[1].content=a(a(t))})}}function d(o){return n(["Plugins","Grammar Nazi"],"Stopped plugin."),o.unpatch(),!0}var h={onStart:c,onStop:d,meta:{name:"Grammar Nazi",desc:"Corrects your grammar.. or else."}};return h})();