Skip to content

Commit

Permalink
add logging for err in risitas
Browse files Browse the repository at this point in the history
  • Loading branch information
ACayet committed Oct 17, 2019
1 parent a7f833d commit f7a0b78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const help = (message, args, commands) => {
.setColor(process.env.BOTCOLOR)
.setAuthor(`Regarde tout ce que je sais faire, je suis super intelligent ^_^`)

console.log(commands);
//console.log(commands);
allHelp.fields = commands.map(cmd => { return {

name: `!${cmd.name}`,
Expand Down
4 changes: 3 additions & 1 deletion commands/risitas.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
const Discord = require('discord.js');
require('dotenv').config()
var logger = require('winston');
const rp = require('request-promise');

/**
Expand Down Expand Up @@ -41,7 +42,8 @@ const risitas = (message, args) => {
}
})
.catch(function (err) {
console.log(err);
logger.error(err)
//console.log(err);
message.channel.send("Probleme avec l'api, veuillez ressayer");
});

Expand Down

0 comments on commit f7a0b78

Please sign in to comment.