diff options
author | Ninjune x <enderknight537@gmail.com> | 2023-01-08 02:12:14 -0600 |
---|---|---|
committer | Ninjune x <enderknight537@gmail.com> | 2023-01-08 02:12:14 -0600 |
commit | 688e13930681bca7881d19468745f7067e9bc5c2 (patch) | |
tree | 9e95e59359dd2ae6e2e7761666b99a191bb62a1f /chat/message.js | |
parent | 1891ada92ab1911cfaaa7ad0e72c85573f4fcbb6 (diff) | |
download | coleweight-688e13930681bca7881d19468745f7067e9bc5c2.tar.gz coleweight-688e13930681bca7881d19468745f7067e9bc5c2.tar.bz2 coleweight-688e13930681bca7881d19468745f7067e9bc5c2.zip |
v1.8.6future
Diffstat (limited to 'chat/message.js')
-rw-r--r-- | chat/message.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/chat/message.js b/chat/message.js index 27cf78f..f55ecba 100644 --- a/chat/message.js +++ b/chat/message.js @@ -50,43 +50,6 @@ register("gameLoad", () => { }) }) - -register("messageSent", (origMessage, event) => { // emotes! this was fun to make :) - let commandState = 0, - command = "", - colonIndex1 = -1, - message = "" - - for(let charIndex = 0; charIndex < origMessage.length; charIndex++) - { - if(origMessage[charIndex] == ":" && commandState == 0) - { - colonIndex1 = charIndex - commandState = 1 - } - else if (origMessage[charIndex] == ":" && commandState == 1) - { - commandState = 2 - command = origMessage.slice(colonIndex1 + 1, charIndex).toLowerCase() - } - } - if(command == "shrug") - { - cancel(event) - emote = "¯\\_(ツ)_/¯" - } - else if (command == "lenny") - { - cancel(event) - emote = "( ͡° ͜ʖ ͡°)" - } - else - return - message = origMessage.slice(0, colonIndex1) + emote + origMessage.slice(colonIndex1 + 2 + command.length, origMessage.length) - ChatLib.say(`${message}`) -}) - - // first time check register("step", () => { if (constants.data.first_time) |