idk get back later

master
Bronwen 2020-11-23 00:34:50 -05:00
parent ca1e7e4208
commit 99d75c871b
1 changed files with 11 additions and 3 deletions

View File

@ -81,3 +81,11 @@ module.exports = function (req, res) {
var url = Math.floor(Math.random() * 100000).toString();
getColorJson('http://colorhunt.co/c/' + url);
};
function getRandom() {
return new Promise(res => {
request('http://colorhunt.co/c/random')
});
}