mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Whoops, forgot something?
This commit is contained in:
@@ -14,6 +14,8 @@ module.exports = class DECTalkCommand extends Command {
|
|||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 10
|
duration: 10
|
||||||
},
|
},
|
||||||
|
userPermissions: ['CONNECT', 'SPEAK'],
|
||||||
|
clientPermissions: ['ADD_REACTIONS', 'READ_MESSAGE_HISTORY'],
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
@@ -39,6 +41,7 @@ module.exports = class DECTalkCommand extends Command {
|
|||||||
.get('http://tts.cyzon.us/tts')
|
.get('http://tts.cyzon.us/tts')
|
||||||
.query({ text });
|
.query({ text });
|
||||||
const dispatcher = connection.play(url);
|
const dispatcher = connection.play(url);
|
||||||
|
await msg.react('🔉');
|
||||||
dispatcher.once('finish', () => voiceChannel.leave());
|
dispatcher.once('finish', () => voiceChannel.leave());
|
||||||
dispatcher.once('error', () => voiceChannel.leave());
|
dispatcher.once('error', () => voiceChannel.leave());
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user