TimboKZ / discord-spoiler-bot

🗣️🛑 Spoiler support for Discord
https://www.npmjs.com/package/discord-spoiler-bot
MIT License
61 stars 19 forks source link

Add line break support #10

Closed Aeryax closed 7 years ago

Aeryax commented 7 years ago

Hello,

There is a bug when user input have a line break.

Before: image

After: image

By the way, very nice work ! Thank you.

PS: I am working on a Docker container here: https://github.com/Aeryax/docker-spoilerbot PS²: Sorry, I don't have requirements to install node-canvas so I can't run npm run test and lint. I hope it's ok.

TimboKZ commented 7 years ago

Just added some extra tests to make sure the string is broken into lines correctly. Your solution passed them all, good job!

Also, thanks for working on the Docker version of the bot, people will sure find it useful.