This commit is contained in:
loicbersier 2019-07-18 00:06:12 +02:00
parent 47d8f8166b
commit 3730aecd87

View file

@ -41,7 +41,7 @@ class dectalkvcCommand extends Command {
if (!voiceChannel) return message.say('Please enter a voice channel first.'); if (!voiceChannel) return message.say('Please enter a voice channel first.');
try { try {
const connection = await voiceChannel.join(); const connection = await voiceChannel.join();
const dispatcher = connection.play('./dectalkvc.wav'); const dispatcher = connection.play('./dectalk/dectalkvc.wav');
dispatcher.once('finish', () => voiceChannel.leave()); dispatcher.once('finish', () => voiceChannel.leave());
dispatcher.once('error', () => voiceChannel.leave()); dispatcher.once('error', () => voiceChannel.leave());
return null; return null;
@ -61,7 +61,7 @@ class dectalkvcCommand extends Command {
if (!voiceChannel) return message.say('Please enter a voice channel first.'); if (!voiceChannel) return message.say('Please enter a voice channel first.');
try { try {
const connection = await voiceChannel.join(); const connection = await voiceChannel.join();
const dispatcher = connection.play('./dectalkvc.wav'); const dispatcher = connection.play('./dectalk/dectalkvc.wav');
dispatcher.once('finish', () => voiceChannel.leave()); dispatcher.once('finish', () => voiceChannel.leave());
dispatcher.once('error', () => voiceChannel.leave()); dispatcher.once('error', () => voiceChannel.leave());
return null; return null;