mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-25 07:48:32 +00:00
delete bypassAutomod :trollface:
This commit is contained in:
parent
b7782a084e
commit
40158ff05d
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
|||
import { Devs } from "../utils/constants";
|
||||
import definePlugin from "../utils/types";
|
||||
import { addPreEditListener, addPreSendListener, MessageObject, removePreEditListener, removePreSendListener } from "../api/MessageEvents";
|
||||
|
||||
|
||||
export default definePlugin({
|
||||
name: "Bypass Automod",
|
||||
description: "Bypasses the automod",
|
||||
version: "1.0.0",
|
||||
authors: [Devs.mantikafasi],
|
||||
start() {
|
||||
return
|
||||
|
||||
addPreSendListener((_, msg) => {
|
||||
var newMsg = "";
|
||||
msg.content.split(" ").forEach((word, _) => {
|
||||
if (word.length < 2) return
|
||||
let i = Math.round(Math.random() * (word.length - 1));
|
||||
console.log(i,word)
|
||||
newMsg += word.replace(word[i], word[i] + "\u200C\u2062\u2063\u2064\u200d") + " ";
|
||||
});
|
||||
msg.content = newMsg.concat();
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
);
|
Loading…
Add table
Reference in a new issue