diff options
| author | 8cy <[email protected]> | 2020-05-21 20:32:12 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-05-21 20:32:12 -0700 |
| commit | be02e342d915b4de8b4353a082b5a96b3f95c396 (patch) | |
| tree | ada1edd6bb3873dc89784c2af89480cb15bae867 /src/commands | |
| parent | Update play.ts (diff) | |
| download | dep-core-be02e342d915b4de8b4353a082b5a96b3f95c396.tar.xz dep-core-be02e342d915b4de8b4353a082b5a96b3f95c396.zip | |
fix volume error lol
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/voice/play.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/voice/play.ts b/src/commands/voice/play.ts index dfbeadb..398b431 100644 --- a/src/commands/voice/play.ts +++ b/src/commands/voice/play.ts @@ -6,6 +6,7 @@ import Youtube from 'simple-youtube-api'; import config from '../../config.json'; const youtube = new Youtube(config['yt-api-key']); import emoji from 'emoji-random'; +const volume = 100 / 100 / 25; module.exports = class PlayVoice extends Command { constructor(client) { @@ -219,6 +220,7 @@ module.exports = class PlayVoice extends Command { } playSong(queue, msg: CommandoMessage) { const classThis = this; // use classThis instead of 'this' because of lexical scope below + msg.guild.musicData.volume = volume; queue[0].voiceChannel .join() .then(function (connection) { @@ -231,8 +233,6 @@ module.exports = class PlayVoice extends Command { ) .on('start', function () { msg.guild.musicData.songDispatcher = dispatcher; - const volume = 100 / 150; - msg.guild.musicData.volume = volume; dispatcher.setVolume(msg.guild.musicData.volume); const videoEmbed = new MessageEmbed() .setThumbnail(queue[0].thumbnail) |