mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
Fix README plugin name
This commit is contained in:
parent
7d4fb35cd3
commit
0650777a7f
2 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,3 @@
|
|||
# videoStartNotifier Plugin for Vencord
|
||||
# WebcamStartNotifier Plugin for Vencord
|
||||
|
||||
Plays a sound notification when a user starts/stops their video in a voice chat. The sounds are the stream start/stop sounds but modified pitch
|
||||
|
||||
Idea from [Vencord Plugin Request #1026](https://github.com/Vencord/plugin-requests/issues/1026)
|
||||
Plays a sound notification when a user starts/stops their video in a voice chat. The sounds are the stream start/stop sounds but modified pitch
|
|
@ -11,6 +11,8 @@ import { Devs } from "@utils/constants";
|
|||
const startSound = "https://raw.githubusercontent.com/redbaron2k7/videoStartNotifier//main/start.mp3";
|
||||
const stopSound = "https://raw.githubusercontent.com/redbaron2k7/videoStartNotifier/main/stop.mp3";
|
||||
|
||||
const videoStates = new Map<string, boolean>();
|
||||
|
||||
function playNotification(isVideoOn: boolean) {
|
||||
new Audio(isVideoOn ? startSound : stopSound).play();
|
||||
}
|
||||
|
@ -21,8 +23,6 @@ export default definePlugin({
|
|||
authors: [Devs.redbaron2k7],
|
||||
|
||||
flux: (() => {
|
||||
const videoStates = new Map<string, boolean>();
|
||||
|
||||
return {
|
||||
VOICE_STATE_UPDATES: ({ voiceStates }: { voiceStates: Array<{ userId: string, channelId: string, selfVideo?: boolean; }>; }) => {
|
||||
const currentChannelId = SelectedChannelStore.getVoiceChannelId();
|
||||
|
|
Loading…
Reference in a new issue