aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-20 06:49:34 +0800
committerGitHub <noreply@github.com>2022-05-20 06:49:34 +0800
commitdd72504a0581380ad44fd1988f943abd01ca25c2 (patch)
treec94d0bdccdaf3ca0e74ba8cd2f014cc370851129 /features
parentc92d9973c23b01eae02904a3e79f382cbdaaa35d (diff)
parentf43ccc768c67bc052874cdc6e6820534c594a561 (diff)
downloadSoopyV2-dd72504a0581380ad44fd1988f943abd01ca25c2.tar.gz
SoopyV2-dd72504a0581380ad44fd1988f943abd01ca25c2.tar.bz2
SoopyV2-dd72504a0581380ad44fd1988f943abd01ca25c2.zip
Merge pull request #7 from jakeQT/patch-4
added some more options
Diffstat (limited to 'features')
-rw-r--r--features/spamHider/index.js20
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")