This commit is contained in:
Supositware 2019-01-18 22:13:43 +01:00
parent 0bc7686733
commit 578881e3dd

View file

@ -27,9 +27,6 @@ class TtsvcCommand extends Command {
async exec(message, args) {
let text = args.text;
const { voiceChannel } = message.member;
// Construct the request
const request = {
input: { text: text },
@ -59,7 +56,7 @@ class TtsvcCommand extends Command {
// If not in voice channel ask user to join
if (message.member.voice.channel) {
const connection = await message.member.voice.channel.join();
const voiceChannel = message.member.voice.channel.join();
if (text == 'stop') {
voiceChannel.leave();
message.channel.send('I leaved the channel');