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
1/*
2 * FiveCord — a Discord client mod
3 * Copyright (c) 2025 FiveCord
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7import { definePluginSettings } from "@api/Settings";
8import { Devs } from "@utils/constants";
9import definePlugin, { OptionType } from "@utils/types";
10
11const settings = definePluginSettings({
12 onlySnow: {
13 type: OptionType.BOOLEAN,
14 description: "Only play the Snow Halation Theme",
15 default: false,
16 restartNeeded: true
17 }
18});
19
20export default definePlugin({
21 name: "SecretRingToneEnabler",
22 description: "Always play the secret version of the discord ringtone (except during special ringtone events)",
23 tags: ["Notifications", "Fun"],
24 authors: [Devs.AndrewDLO, Devs.FieryFlames, Devs.RamziAH],
25 settings,
26 patches: [
27 {
28 find: '"call_ringing_beat"',
29 replacement: [
30 {
31 match: /500!==\i\(\)\.random\(1,1e3\)/,
32 replace: "false"
33 },
34 {
35 predicate: () => settings.store.onlySnow,
36 match: /"call_ringing_beat",/,
37 replace: ""
38 }
39 ]
40 }
41 ]
42});
43