done for the night
This commit is contained in:
8
bot.js
8
bot.js
@@ -179,6 +179,14 @@ function imgurRequest(subreddit, page_max) {
|
|||||||
return returnText;
|
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!
|
// Abstracted Reddit Json media grab. Will return a list of URLs!
|
||||||
function getUrlListFromReddit(json) {
|
function getUrlListFromReddit(json) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user