Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split long message from Discord to IRC #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codeurimpulsif
Copy link
Contributor

Goal

Because Discord messages characters limit is longer than IRC ones, this PR split a message to 400 characters chunks before sending them on IRC.

Note

This is just an implementation of the code in issue #28. I don't know why this code wasn't implemented before so I just create this PR to make the work easier.

I tested it on my personnal Discord/IRC channels and it fix #28.

Idea

It's working but it's a bit crude, as it cut words to create chunks.

Maybe someone will find a way to cut chunks juste after the previous closest space, to avoid cutting words (I can't do it right now and I'm not a good Go developer).

Because Discord message can be longer than IRC ones.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't truncate text
1 participant