diff options
Diffstat (limited to 'src/plugins/iLoveSpam.ts')
-rw-r--r-- | src/plugins/iLoveSpam.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/iLoveSpam.ts b/src/plugins/iLoveSpam.ts new file mode 100644 index 0000000..d035372 --- /dev/null +++ b/src/plugins/iLoveSpam.ts @@ -0,0 +1,23 @@ +import { Devs } from "../utils/constants"; +import definePlugin from "../utils/types"; + +export default definePlugin({ + name: "iLoveSpam", + description: "Do not hide messages from 'likely spammers'", + authors: [ + Devs.botato, + { + name: "Iryis", + id: 118437263754395652n, + }, + ], + patches: [ + { + find: "),{hasFlag:", + replacement: { + match: /(if\((.{1,2})<=1<<30\)return)/, + replace: "if($2===(1<<20)){return false};$1", + }, + }, + ], +}); |