1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00

soundcloud

This commit is contained in:
MatteZ02 2020-05-07 13:54:15 +03:00
parent 206eacc307
commit e3e70510b9
2 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@
"erlpack": "github:discordapp/erlpack", "erlpack": "github:discordapp/erlpack",
"express": "^4.17.1", "express": "^4.17.1",
"firebase": "^7.14.2", "firebase": "^7.14.2",
"firebase-admin": "^8.11.0", "firebase-admin": "^8.12.0",
"fs": "0.0.1-security", "fs": "0.0.1-security",
"genius-lyrics-api": "^2.0.3", "genius-lyrics-api": "^2.0.3",
"he": "^1.2.0", "he": "^1.2.0",
@ -38,6 +38,7 @@
"prism-media": "github:hydrabolt/prism-media", "prism-media": "github:hydrabolt/prism-media",
"request": "^2.88.2", "request": "^2.88.2",
"simple-youtube-api": "^5.2.1", "simple-youtube-api": "^5.2.1",
"soundcloud-api-client": "0.0.9",
"spotify-web-api-node": "^4.0.0", "spotify-web-api-node": "^4.0.0",
"utf-8-validate": "^5.0.2", "utf-8-validate": "^5.0.2",
"video-thumbnail-url": "^1.0.1", "video-thumbnail-url": "^1.0.1",

View File

@ -7,6 +7,7 @@ module.exports = {
permission: "dev", permission: "dev",
category: "music", category: "music",
async execute(msg, args, client, Discord, prefix, command) { async execute(msg, args, client, Discord, prefix, command) {
if (!args[1]) return msg.channel.send(client.messages.noQuery);
const SoundCloud = require("soundcloud-api-client"); const SoundCloud = require("soundcloud-api-client");
const key = client.config.soundCloud_api_key; const key = client.config.soundCloud_api_key;
const soundcloud = new SoundCloud({ key }); const soundcloud = new SoundCloud({ key });