mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix DECTalk
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class DECTalkCommand extends Command {
|
|||||||
try {
|
try {
|
||||||
const connection = await channel.join();
|
const connection = await channel.join();
|
||||||
const data = await snekfetch
|
const data = await snekfetch
|
||||||
.get('http://tts.cyzon.us/tts', { redirects: false })
|
.get('http://tts.cyzon.us/tts', { redirect: false })
|
||||||
.query({ text });
|
.query({ text });
|
||||||
const dispatcher = connection.play(`http://tts.cyzon.us${data.headers.location}`);
|
const dispatcher = connection.play(`http://tts.cyzon.us${data.headers.location}`);
|
||||||
dispatcher.once('finish', () => channel.leave());
|
dispatcher.once('finish', () => channel.leave());
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "77.0.3",
|
"version": "77.0.4",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user