diff --git a/index.js b/index.js index bb85f28..3e1ca53 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,7 @@ import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); +const mdBaseUrl = process.env.MD_BASE_URL; const apiId = parseInt(process.env.API_ID); const apiHash = process.env.API_HASH; const songPrefix = process.env.SONG_PREFIX || ""; @@ -27,7 +28,7 @@ try { } async function getCurrentSong() { - return fetch('https://multi-scrobbler.riksolo.com/api/status').then((data) => { + return fetch(mdBaseUrl + '/api/status').then((data) => { return data.json(); }).then(data => { const players = [];