2022-10-01 02:23:41 +00:00
|
|
|
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,
|
2022-10-10 22:20:27 +00:00
|
|
|
Devs.Animal,
|
2022-10-01 02:23:41 +00:00
|
|
|
],
|
|
|
|
patches: [
|
|
|
|
{
|
|
|
|
find: "),{hasFlag:",
|
|
|
|
replacement: {
|
|
|
|
match: /(if\((.{1,2})<=1<<30\)return)/,
|
|
|
|
replace: "if($2===(1<<20)){return false};$1",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|