renesansz / discord-greeter-bot

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

Error: Invalid transport, must be an object with a log method. #186

Closed Nameless9 closed 5 years ago

Nameless9 commented 5 years ago

I've installed winston 1.3.1 and it seems it was supported for 1.2.x and not 1.3.x. (from online) There were many subsections of winstons like winston-loggly etc and it would be helpful if someone who did this tutorial can help me out

Nameless9 commented 5 years ago

maninuni commented 15 days ago

Change the code: from logger.add(logger.transports.Console to logger.add(new logger.transports.Console it should work now

Found a solution. thanks

HavocBlast commented 5 years ago

What was your solution? I tried changing the code in the above comment and I got no errors this time but the bot didn't go online

Nameless9 commented 5 years ago

Sorry for the delay. That worked out for me. I didn't downgrade to 1.2.x, I left it as 1.3.1 and used "new" keyword. I have stopped using this way to develop the bot however.

Although, this example helped me get started but I moved on to using discord.js. Discord.js is very orderly, logical and simple and I was able to make a simple project using it

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.