Added error reporting functionality, fixed bugs in the various game's code and tidied up a bit

This commit is contained in:
ION606
2022-07-19 15:41:49 +03:00
parent 4e1214a312
commit 0b13f6db29
13 changed files with 259 additions and 79 deletions
+3
View File
@@ -5,6 +5,7 @@ var FeedParser = require('feedparser');
const fetch = require('node-fetch');
const { VoiceConnectionStatus, AudioPlayerStatus, createAudioPlayer, StreamType, joinVoiceChannel, createAudioResource, getVoiceConnection } = require('@discordjs/voice');
const play = require('play-dl');
const { addComplaintButton } = require('../dev only/submitcomplaint');
const hastebin = require("hastebin-gen");
const { simpleCast } = require('./RSSHandlers/simplecast.js')
@@ -154,6 +155,8 @@ async function getAndFormatRSS(bot, message, user, inp) {
feedparser.on('error', function (error) {
// always handle errors
addComplaintButton(bot, message);
console.log(error);
});
const items = new Array();