Skip to content

Commit

Permalink
refactor(play): sC Client id is no longer mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
eritislami committed Jul 29, 2020
1 parent a814751 commit 01e47b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -30,6 +30,7 @@ Copy or Rename `config.json.example` to `config.json` and fill out the values:
{
"TOKEN": "",
"YOUTUBE_API_KEY": "",
"SOUNDCLOUD_CLIENT_ID": "",
"MAX_PLAYLIST_SIZE": 10,
"PREFIX": "/",
"PRUNING": false
Expand All @@ -48,7 +49,7 @@ Copy or Rename `config.json.example` to `config.json` and fill out the values:

`/play under the bridge red hot chili peppers`

* 馃幎 Play music from Soundcloud via url **(Requires Soundcloud Client Id)**
* 馃幎 Play music from Soundcloud via url

`/play https://soundcloud.com/blackhorsebrigade/pearl-jam-alive`

Expand Down
3 changes: 0 additions & 3 deletions commands/play.js
Expand Up @@ -67,9 +67,6 @@ module.exports = {
return message.reply(error.message).catch(console.error);
}
} else if (scRegex.test(url)) {
// It is a valid Soundcloud URL
if (!SOUNDCLOUD_CLIENT_ID)
return message.reply("Missing Soundcloud Client ID in config").catch(console.error);
try {
const trackInfo = await scdl.getInfo(url, SOUNDCLOUD_CLIENT_ID);
song = {
Expand Down

0 comments on commit 01e47b0

Please sign in to comment.