Plugin
SecretRingToneEnabler
Always play the secret version of the discord ringtone (except during special ringtone events)
1
import { definePluginSettings } from "@api/Settings";2
import { Devs } from "@utils/constants";3
import definePlugin, { OptionType } from "@utils/types";4
5
const settings = definePluginSettings({6
onlySnow: {7
type: OptionType.BOOLEAN,8
description: "Only play the Snow Halation Theme",9
default: false,10
restartNeeded: true11
}12
});13
14
export 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: 039;"call_ringing_beat"039;,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