-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update play command with autocomplete support and response hand…
…ling
- Loading branch information
1 parent
d4762d5
commit e1d56ac
Showing
7 changed files
with
186 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"printWidth": 80, | ||
"printWidth": 90, | ||
"tabWidth": 4, | ||
"useTabs": true, | ||
"semi": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{ | ||
"vc": { | ||
"noVC": "No valid VC detected. Please join a VC and try again." | ||
"noVC": "🚫 - No valid VC detected. Please join a VC and try again.", | ||
"joined": "👋 - Joined your VC.", | ||
"differentVC": "🚫 - You need to be in the same VC as me to use this command.", | ||
"noQuery": "🚫 - Please provide a query to search for." | ||
}, | ||
"ping": "Pong! Current Ping is" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const config = require('../config.json'); | ||
|
||
const { createMusicEmbed } = require('./embed.js'); | ||
|
||
const { ButtonBuilder, ButtonStyle, ActionRowBuilder } = require('discord.js'); | ||
|
||
const listenEvents = async (guildId) => { | ||
global.queue[guildId].player.on('start', async (data) => { | ||
const current = global.queue[guildId].queue[global.queue[guildId].index]; | ||
global.queue[guildId].textChannel.send(`Now playing: ${current.data.info.title}`); | ||
}); | ||
}; | ||
|
||
module.exports = listenEvents; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters