add BANger (#8)

This commit is contained in:
Xinto 2022-09-04 02:21:35 +04:00 committed by GitHub
parent 1645913b7f
commit 9aed4d275f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
src/plugins/banger.ts Normal file
View file

@ -0,0 +1,16 @@
import definePlugin from "../utils/types";
export default definePlugin({
name: "BANger",
description: "Replaces the GIF in the ban dialogue with a custom one.",
author: "Xinto",
patches: [
{
find: "BanConfirm",
replacement: {
match: /src:\w\(\d+\)/g,
replace: 'src: "https://i.imgur.com/wp5q52C.mp4"'
}
}
],
})