renesansz / discord-greeter-bot

My greeter bot for Discord
MIT License
49 stars 38 forks source link

Error when running node bot.js #192

Closed Razor1928 closed 5 years ago

Razor1928 commented 5 years ago

Here is a screenshot of my problem, if anyone could help it would be very appreciated, i can also provide screenshots of my files if needed. image

ghazni101 commented 5 years ago

same problem with me

EGobi commented 5 years ago

Yeah, same.

EGobi commented 5 years ago

Workaround (kinda) I've found: Comment lines 5 to 9 and 15 to 19, i.e.:

/*logger.remove(logger.transports.Console);
logger.add(logger.transports.Console, {
    colorize: true
});
logger.level = 'debug';*/

and

/*bot.on('ready', function (evt) {
    logger.info('Connected');
    logger.info('Logged in as: ');
    logger.info(bot.username + ' - (' + bot.id + ')');
});*/
Bellesboy commented 5 years ago

Workaround (kinda) I've found: Comment lines 5 to 9 and 15 to 19, i.e.:

/*logger.remove(logger.transports.Console);
logger.add(logger.transports.Console, {
    colorize: true
});
logger.level = 'debug';*/

and

/*bot.on('ready', function (evt) {
    logger.info('Connected');
    logger.info('Logged in as: ');
    logger.info(bot.username + ' - (' + bot.id + ')');
});*/

I've tried this an when I do I don't get any message back and the bot stays offline, any other ideas?

Jwtotter commented 5 years ago

fixed this by uninstalling winston and reinstalling and older version (v2.4.4). apparently v3 onwards isn't compatible

ferruzzi commented 5 years ago

to make it work with winston3, just change the logger.add line to this:

logger.add(new logger.transports.Console(), {

I still haven't gotten the bot online, but that gets rid of the error

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.