Version 0.3.0-alpha1 - Youtube and Spotify support

This commit is contained in:
2025-02-28 19:21:47 +01:00
parent a060d00599
commit c8c8fd71be
22 changed files with 925 additions and 167 deletions

View File

@@ -10,6 +10,13 @@ const config = new Database("config", __glob.DATA + path.sep + "config.json", {
report: {
channel : "",
contact : ""
},
api: {
youtube: "",
spotify: {
clientId: "",
clientSecret: ""
}
}
})
@@ -25,9 +32,22 @@ function getReportContact() {
return config.data.report.contact
}
function getYoutubeApiKey() {
return config.data.api.youtube
}
function getSpotifyClientId() {
return config.data.api.spotify.clientId
}
function getSpotifyClientSecret() {
return config.data.api.spotify.clientSecret
}
if(getToken() == "") {
clog.error("Impossible de démarrer sans token valide")
process.exit(1)
}
module.exports = {getToken, getReportChannel, getReportContact}
module.exports = {getToken, getReportChannel, getReportContact, getYoutubeApiKey, getSpotifyClientId, getSpotifyClientSecret}