aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/banger.ts
diff options
context:
space:
mode:
authorGlitchy <46732589+GlitchChan@users.noreply.github.com>2022-10-19 19:50:58 +0000
committerGitHub <noreply@github.com>2022-10-19 21:50:58 +0200
commitefab399309a44f8ea6a783abd13c49abb8cd6e38 (patch)
tree3aaa690a15dac81433652a3e32f1ccaaafa776dc /src/plugins/banger.ts
parentdd1537a5d691d7dae1040fa9f70d4b3525bd8fca (diff)
downloadVencord-efab399309a44f8ea6a783abd13c49abb8cd6e38.tar.gz
Vencord-efab399309a44f8ea6a783abd13c49abb8cd6e38.tar.bz2
Vencord-efab399309a44f8ea6a783abd13c49abb8cd6e38.zip
feat(BANger): Customisable gif or video (#121)
Signed-off-by: glitchy <thepatheticweebgamer@gmail.com>
Diffstat (limited to 'src/plugins/banger.ts')
-rw-r--r--src/plugins/banger.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/banger.ts b/src/plugins/banger.ts
index fae7cf3..6673555 100644
--- a/src/plugins/banger.ts
+++ b/src/plugins/banger.ts
@@ -1,4 +1,4 @@
-import definePlugin from "../utils/types";
+import definePlugin, { OptionType } from "../utils/types";
import { Devs } from "../utils/constants";
export default definePlugin({
@@ -16,8 +16,16 @@ export default definePlugin({
find: "BAN_CONFIRM_TITLE.",
replacement: {
match: /src:\w\(\d+\)/g,
- replace: 'src: "https://i.imgur.com/wp5q52C.mp4"'
+ replace: "src: Vencord.Settings.plugins.BANger.source"
}
}
],
+ options: {
+ source: {
+ description: "Source to replace ban GIF with (Video or Gif)",
+ type: OptionType.STRING,
+ default: "https://i.imgur.com/wp5q52C.mp4",
+ restartNeeded: true,
+ }
+ }
});