diff --git a/app.js b/app.js index a3b64c1..90d1801 100644 --- a/app.js +++ b/app.js @@ -20,9 +20,6 @@ app.get("/changeTeams/:teamSlug", (res, req) => { } }) -app.listen(port, () => { - console.log("info: REST API is up at http://localhost:"+port+", see the docs for details on how to use it.") -}) client.on('ready', async () => { client.request("SET_ACTIVITY", { pid: process.pid, activity: defaultActivity }); @@ -31,7 +28,10 @@ client.on('ready', async () => { client.on('connected', async () => { console.log("info: Connected to Discord RPC"); }); +app.listen(port, () => { + console.log("info: REST API is up at http://localhost:"+port+", see the docs for details on how to use it.") +}) // Uses the unofficial MCC.Live OAuth client ID from Andrei Jiroh. -client.login({ clientId: "952456760948559932" }); \ No newline at end of file +client.login({ clientId: "952456760948559932" }); diff --git a/lib/defaults.js b/lib/defaults.js index 726d614..61e5b2c 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -3,8 +3,8 @@ let defaultActivity = { assets: { large_image: "mcc-twitter", large_text: "MC Championship", - small_image: "", - small_text: "" + small_image: "spectator", + small_text: "Probably watching on Admin Stream soon" }, buttons: [ { @@ -23,4 +23,6 @@ let defaultActivity = { } } -module.exports = defaultActivity \ No newline at end of file +module.exports = { + defaultActivity +}