Fix stupidity
This commit is contained in:
parent
2f0e54eb81
commit
fe13e8c9c1
1 changed files with 6 additions and 7 deletions
13
src/index.ts
13
src/index.ts
|
|
@ -275,7 +275,6 @@ client.on("messageCreate", async (msg: Message) => {
|
|||
}
|
||||
if (msg.channel.name === "moe-song-requests") {
|
||||
let controls;
|
||||
|
||||
if (!settings.requestChannels[msg.guild.id]) {
|
||||
let answer = await msg.reply("Use .init first");
|
||||
console.log(answer);
|
||||
|
|
@ -293,12 +292,6 @@ client.on("messageCreate", async (msg: Message) => {
|
|||
// get(requestChannels[msg.guild.id]);
|
||||
// client.channels.fetch(requestChannels[msg.guild.id])
|
||||
}
|
||||
const player = await kazagumo.createPlayer({
|
||||
guildId: msg.guild.id,
|
||||
textId: msg.channel.id,
|
||||
voiceId: msg.channel.id,
|
||||
volume: 40,
|
||||
});
|
||||
const query = msg.content;
|
||||
|
||||
const { channel } = msg.member.voice;
|
||||
|
|
@ -311,6 +304,12 @@ client.on("messageCreate", async (msg: Message) => {
|
|||
return;
|
||||
}
|
||||
|
||||
const player = await kazagumo.createPlayer({
|
||||
guildId: msg.guild.id,
|
||||
textId: msg.channel.id,
|
||||
voiceId: channel.id,
|
||||
volume: 40,
|
||||
});
|
||||
console.log("Player created");
|
||||
const result = await kazagumo.search(query, { requester: msg.author });
|
||||
if (!result.tracks.length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue