summaryrefslogtreecommitdiff
path: root/src/commands/voice/play.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/voice/play.ts')
-rw-r--r--src/commands/voice/play.ts4
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)