diff --git a/src/plugins/iLoveSpam.ts b/src/plugins/iLoveSpam.ts new file mode 100644 index 000000000..d0353722b --- /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", + }, + }, + ], +}); diff --git a/src/plugins/folderSvgIcon.ts b/src/plugins/plainFolderIcon.ts similarity index 76% rename from src/plugins/folderSvgIcon.ts rename to src/plugins/plainFolderIcon.ts index 208efaa51..c04c78b6d 100644 --- a/src/plugins/folderSvgIcon.ts +++ b/src/plugins/plainFolderIcon.ts @@ -1,12 +1,10 @@ +import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; export default definePlugin({ - name: "Folder SVG Icon", + name: "PlainFolderIcon", description: "Doesn't show the small guild icons in folders", - authors: [{ - name: "botato", - id: 440990343899643943n - }], + authors: [Devs.botato], patches: [{ find: "().expandedFolderIconWrapper", replacement: [{ diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 57cd9b72b..29ba6faff 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -18,5 +18,9 @@ export const Devs = Object.freeze({ Megu: { name: "Megumin", id: 545581357812678656n + }, + botato: { + name: "botato", + id: 440990343899643943n } });