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

View File

@@ -1,6 +1,6 @@
{ {
"name": "link-flayer", "name": "link-flayer",
"version": "1.0.1", "version": "1.0.2",
"description": "Discord RSS News Bot", "description": "Discord RSS News Bot",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {