Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Reduce stream volume.
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanFleck committed Mar 2, 2021
1 parent ea529cf commit e82b0fe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions commands/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const playSong = async (
.on("close", () => {
message.react("🛑");
});
dispatch.setVolumeLogarithmic(3 / 5);
// Default volume is lower to prevent blown out eardrums, ha.
dispatch.setVolumeLogarithmic(1 / 3);
return message.react("❤️");
});
})
Expand All @@ -68,10 +69,6 @@ export const action: Action = async (
message: Message,
key: string
): Promise<any> => {
console.log("Running music command...");
console.log(`KEY: ${key}`);
// message.suppressEmbeds(); // Prevent a youtube tile from taking up a bunch of space.

// Get voice channel and permission status.
const voiceChannel = message.member?.voice?.channel;
if (!voiceChannel) return message.reply("Join a VC to play music.");
Expand Down

0 comments on commit e82b0fe

Please sign in to comment.