mirror of
https://github.com/ION606/selmerBot.git
synced 2026-06-06 07:12:58 +00:00
Added error reporting functionality, fixed bugs in the various game's code and tidied up a bit
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user