diff --git a/src/events/onMessage.ts b/src/events/onMessage.ts index f328a17..e253d02 100644 --- a/src/events/onMessage.ts +++ b/src/events/onMessage.ts @@ -36,7 +36,7 @@ export default function init() { history }) - blacklist.forEach((val) => { + blacklist.forEach((val: string) => { res = res.replaceAll(new RegExp(val, "gmi"), `${val[0]}${"\\*".repeat(val.length - 1)}`) })