aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/iLoveSpam.ts
blob: d0353722b3a85e730b4df06dde186645a7cd2f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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",
            },
        },
    ],
});