diff options
author | jakeQT <96396730+jakeQT@users.noreply.github.com> | 2022-05-19 20:43:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 20:43:23 +0800 |
commit | f43ccc768c67bc052874cdc6e6820534c594a561 (patch) | |
tree | c94d0bdccdaf3ca0e74ba8cd2f014cc370851129 /features/spamHider | |
parent | c92d9973c23b01eae02904a3e79f382cbdaaa35d (diff) | |
download | SoopyV2-f43ccc768c67bc052874cdc6e6820534c594a561.tar.gz SoopyV2-f43ccc768c67bc052874cdc6e6820534c594a561.tar.bz2 SoopyV2-f43ccc768c67bc052874cdc6e6820534c594a561.zip |
added some more options
added "show pet level up" option
added "show autopet rule" option
added "completely remove 'There are blocks in the way!' message from separated gui" option
Diffstat (limited to 'features/spamHider')
-rw-r--r-- | features/spamHider/index.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/features/spamHider/index.js b/features/spamHider/index.js index 141d49f..f5f2259 100644 --- a/features/spamHider/index.js +++ b/features/spamHider/index.js @@ -32,6 +32,9 @@ class SpamHider extends Feature { this.textShadowSetting = new ToggleSetting("Spam Hider Text Shadow", "Whether to give the spam hider text shadow", true, "spam_text_shadow", this) this.showFriendMessages = new ToggleSetting("Show friend message", "should it show friend join/leave message", false, "spam_text_friend", this) this.showGuildMessages = new ToggleSetting("Show guild message", "should it show guild mate join/leave message", false, "spam_text_guild", this) + this.showPetLevelUpMessage = new ToggleSetting("Show pet level message", "should it show pet level up message", false, "spam_text_pet_level", this) + this.removeBlocksInTheWay = new ToggleSetting("Remove limited tp msg", "completely erases 'There are blocks in the way!' message from gui", false, "limited_tp_msg", this) + this.showAutoPetRule = new ToggleSetting("Show autopet rule", "Should it show autopet rule messages", false, "autopet_msg", this) this.SpamHiderMessagesRenderer = new SpamHiderMessagesRenderer() this.textShadowSetting.toggleObject.addEvent(new SoopyContentChangeEvent().setHandler((newVal, oldVal, resetFun) => { @@ -72,10 +75,23 @@ class SpamHider extends Feature { if (msg.length > 1000) return //performance //&r&aFriend > &r&6Soopyboo32 &r&ejoined.&r - if (this.showFriendMessages && msg.includes("&aFriend")) return + if (this.showFriendMessages.getValue() && msg.includes("&aFriend")) return //&r&2Guild > &r&6Soopyboo32 &r&ejoined.&r - if (this.showGuildMessages && msg.includes("&2Guild")) return + if (this.showGuildMessages.getValue() && msg.includes("&2Guild")) return + + //&r&aYour &r&6Golden Dragon &r&alevelled up to level &r&9200&r&a!&r + if (this.showPetLevelUpMessage.getValue() && msg.includes("&alevelled up")) return + + //&r&cThere are blocks in the way!&r + //completely erases this + if (this.removeBlocksInTheWay.getValue() && msg.includes("There are blocks in the way!")) { + cancel(e) + return + } + + //&cAutopet &eequipped your &7[Lvl 200] &6Golden Dragon&e! &a&lVIEW RULE&r + if (this.showAutoPetRule.getValue() && msg.includes("&cAutopet")) return if (this.hideMessagesSetting.getValue()) { // console.log("testing " + (this.hideMessagesDict[msg.substring(0,5)]?.length || 0) + this.hideMessagesDict.all.length + " hide messages") |