voice debug
This commit is contained in:
parent
034a5d21c5
commit
9ce04df29f
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@ const ffprobe = require("node-ffprobe");
|
||||||
//const {ProxyAgent} = require("proxy-agent");
|
//const {ProxyAgent} = require("proxy-agent");
|
||||||
|
|
||||||
const Command = require("#lib/command.js");
|
const Command = require("#lib/command.js");
|
||||||
|
const logger = require("#lib/logger.js");
|
||||||
|
|
||||||
const {formatUsername} = require("#util/misc.js");
|
const {formatUsername} = require("#util/misc.js");
|
||||||
const {formatTime} = require("#util/time.js");
|
const {formatTime} = require("#util/time.js");
|
||||||
|
@ -165,6 +166,9 @@ async function createVoiceConnection(guild_id, voice_id, text_id) {
|
||||||
selfDeaf: true,
|
selfDeaf: true,
|
||||||
selfMute: false,
|
selfMute: false,
|
||||||
});
|
});
|
||||||
|
state.connection.on("debug", (msg) => {
|
||||||
|
logger.debug("hf:voice", msg);
|
||||||
|
});
|
||||||
state.queue = [];
|
state.queue = [];
|
||||||
|
|
||||||
state.onEnd = async function () {
|
state.onEnd = async function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue