Plugin

SecretRingToneEnabler

Always play the secret version of the discord ringtone (except during special ringtone events)

Notifications Fun
index.ts
Download

Source

src/plugins/secretRingTone/index.ts
1import { definePluginSettings } from "@api/Settings";
2import { Devs } from "@utils/constants";
3import definePlugin, { OptionType } from "@utils/types";
4
5const settings = definePluginSettings({
6 onlySnow: {
7 type: OptionType.BOOLEAN,
8 description: "Only play the Snow Halation Theme",
9 default: false,
10 restartNeeded: true
11 }
12});
13
14export default definePlugin({
15 name: "SecretRingToneEnabler",
16 description: "Always play the secret version of the discord ringtone (except during special ringtone events)",
17 tags: ["Notifications", "Fun"],
18 authors: [Devs.AndrewDLO, Devs.FieryFlames, Devs.RamziAH],
19 settings,
20 patches: [
21 {
22 find: '"call_ringing_beat"',
23 replacement: [
24 {
25 match: /500!==\i\(\)\.random\(1,1e3\)/,
26 replace: "false"
27 },
28 {
29 predicate: () => settings.store.onlySnow,
30 match: /"call_ringing_beat",/,
31 replace: ""
32 }
33 ]
34 }
35 ]
36});
37