This repository has been archived on 2026-01-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Lunaris/ReAuthenticate.js
2023-06-25 04:00:21 +02:00

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;