minor updates
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user