[READ-ONLY] Mirror of https://github.com/maybeanerd/MagiBot. MagiBot - the community building discord bot that adds joinsounds to your voice channels! discord.gg/2Evcf4T
bot bots community discord gaming hacktoberfest sound
1

Configure Feed

Select the types of activity you want to include in your feed.

add ffmpeg buildback

Sebastian Di Luzio (Apr 7, 2022, 8:27 PM +0200) bbeb4ceb 3ea06785

+22 -16
+2
.buildpacks
··· 1 + https://github.com/heroku/heroku-buildpack-nodejs 2 + https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest
+20 -16
src/bot.ts
··· 19 19 handle(bot, config.blapis, 30); 20 20 } 21 21 process.on('uncaughtException', async (err) => { 22 - const chann = await bot.channels.fetch('414809410448261132'); 22 + try { 23 + const chann = await bot.channels.fetch('414809410448261132'); 23 24 24 - console.error(`Uncaught Exception:\n${err.stack ? err.stack : err}`); 25 - if (chann) { 26 - (chann as Discord.TextChannel).send( 27 - `**Outer Uncaught Exception:**\n\`\`\`${ 28 - err.stack ? err.stack : err 29 - }\`\`\``, 30 - ); 31 - } 25 + console.error(`Uncaught Exception:\n${err.stack ? err.stack : err}`); 26 + if (chann) { 27 + (chann as Discord.TextChannel).send( 28 + `**Outer Uncaught Exception:**\n\`\`\`${ 29 + err.stack ? err.stack : err 30 + }\`\`\``, 31 + ); 32 + } 33 + } catch (e) { console.error(e); } 32 34 }); 33 35 process.on('unhandledRejection', async (err) => { 34 - const chann = await bot.channels.fetch('414809410448261132'); 36 + try { 37 + const chann = await bot.channels.fetch('414809410448261132'); 35 38 36 - console.error(`Unhandled promise rejection:\n${err}`); 37 - if (chann) { 38 - (chann as Discord.TextChannel).send( 39 - `**Outer Unhandled promise rejection:**\n\`\`\`${err}\`\`\``, 40 - ); 41 - } 39 + console.error(`Unhandled promise rejection:\n${err}`); 40 + if (chann) { 41 + (chann as Discord.TextChannel).send( 42 + `**Outer Unhandled promise rejection:**\n\`\`\`${err}\`\`\``, 43 + ); 44 + } 45 + } catch (e) { console.error(e); } 42 46 }); 43 47 44 48 // fires on startup and on reconnect