Skip to content

Commit

Permalink
=)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMor8 committed Aug 11, 2020
1 parent 41f69d0 commit f1cdfef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/events/message/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ module.exports = async (bot, message = new Discord.Message(), nolevel = false) =
} else if (!message.guild) {
command.run(bot, message, args)
.catch(err => {
if (err.name === "StructureError") return message.channel.send(err.message);
console.error(err);
message.channel.send("Something happened! Here's a debug: " + err).catch(err => { });
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/badwords.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let arr = require('badwords.js/array');

arr.splice(arr.indexOf("crap"), 1);
class Main {
setOptions(options = {
censor: '*',
Expand Down

0 comments on commit f1cdfef

Please sign in to comment.