From 7216b2e0753751306b07c985e4d12aa55c059280 Mon Sep 17 00:00:00 2001 From: Dalton Date: Wed, 12 Dec 2018 00:03:09 -0800 Subject: [PATCH] done for the night --- bot.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bot.js b/bot.js index e4bcf3d..0925c87 100644 --- a/bot.js +++ b/bot.js @@ -179,6 +179,14 @@ function imgurRequest(subreddit, page_max) { return returnText; } +// Remote config pull +async function getBotConfigValueFrom(key) { + let configJson = await loadJson("https://git.dtam.pw/daniel/discord-bot-js/raw/master/bot-config.json"); + // todo use keys get value; + let value = "magic parsing of configJson"; + return value; +} + // Abstracted Reddit Json media grab. Will return a list of URLs! function getUrlListFromReddit(json) {