21 lines
368 B
JavaScript
21 lines
368 B
JavaScript
const play = require('play-dl');
|
|
|
|
async function ReAuth() {
|
|
/*if (play.is_expired()) {
|
|
await play.refreshToken()
|
|
}*/
|
|
|
|
play.getFreeClientID().then((clientID) => {
|
|
play.setToken({
|
|
soundcloud : {
|
|
client_id : clientID
|
|
}
|
|
})
|
|
|
|
console.log('Soudncloud Client ID: ' + clientID);
|
|
})
|
|
|
|
play.authorization();
|
|
}
|
|
|
|
module.exports.ReAuth = ReAuth; |