Skip to content

Commit

Permalink
fix: effects not working
Browse files Browse the repository at this point in the history
Loads effects plugin and implements fix for equalizer values (thanks @viztea)
  • Loading branch information
zapteryx committed Mar 14, 2024
1 parent 6a82b69 commit f01a3a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/PlayerHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const effects: Record<string, PlayerEffect> = {
band: 4,
gain: 0.0,
},
...new Array(10).map(
...Array.from({ length: 10 }).map(
(_, i): { band: number; gain: number } => ({
band: i + 5,
gain: -0.05,
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
} from '#src/lib/util/common.js';
import { settings } from '#src/lib/util/settings.js';
import { getGuildLocaleString } from '#src/lib/util/util.js';
import { load as effectsLoad } from '@lavaclient/plugin-effects';
import { load as queueLoad } from '@lavaclient/plugin-queue';
import { load } from '@lavaclient/spotify';
import {
Expand Down Expand Up @@ -49,6 +50,7 @@ import { inspect } from 'util';
import { version } from './lib/util/version.js';
import type { QuaverEvent, QuaverMusicEvent } from './main.d.js';

effectsLoad();
queueLoad();

export const startup = { started: false };
Expand Down

0 comments on commit f01a3a9

Please sign in to comment.