minor updates

This commit is contained in:
John Facey
2022-06-22 12:02:15 -05:00
parent 19c57e1e86
commit f53301df9b
2 changed files with 3 additions and 6 deletions

View File

@@ -208,7 +208,7 @@ exports.loadFeeds = function () {
}
exports.getAnswer = async function (question) {
var answerURL = `https://api.duckduckgo.com/?q=${question}&format=json&pretty=1`;
console.log(answerURL);
answerData = {
@@ -279,10 +279,7 @@ exports.getSources = function () {
* @constructor
*/
exports.getQuotes = async function (quote_url) {
//const response = await fetch(quote_url);
//var data = await response.json();
//console.log(data);
//return data;
var data = [];
await axios.get(quote_url)
.then(response => {