Skip to content

Commit 649d937

Browse files
committed
Install mediaplex
1 parent 6874cfa commit 649d937

File tree

3 files changed

+247
-0
lines changed

3 files changed

+247
-0
lines changed

commands/Music/play.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Play extends Command {
2424
try {
2525
const searchResult = await this.client.player.search(query, { requestedBy: msg.author });
2626

27+
if (!searchResult) return msg.channel.send('I could not find that song.');
2728
if (!searchResult.hasTracks()) {
2829
// If player didn't find any songs for this query
2930
return msg.channel.send(`We couldn't find any tracks for ${query}!`);

package-lock.json

Lines changed: 245 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"luxon": "^3.1.1",
5252
"lyrics-finder": "^21.7.0",
5353
"mathjs": "^11.0.1",
54+
"mediaplex": "^0.0.8",
5455
"moment": "^2.29.4",
5556
"moment-duration-format": "^2.3.2",
5657
"mysql2": "^2.2.5",

0 commit comments

Comments
 (0)