Version 0.3.0-alpha1 - Youtube and Spotify support
This commit is contained in:
@@ -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}
|
Reference in New Issue
Block a user