Eddiebot: `^tips opensource` limits the number of characters

Created on 2 Jan 2021  路  10Comments  路  Source: EddieJaoudeCommunity/EddieBot

As discussed in Issue #297 we should add some more links to the openSourceReminders.md file, but the problem is that discord.js limits the characters this could have for the command.
Here are the docs. It was also discussed in this PR.
We need to find a way to make Discord have a bigger limit.
Share your ideas on how we could do this please 馃憤 馃槃

Most helpful comment

I think truncate and add the link is the simplest option for now and quite a good one still 馃憤

All 10 comments

It's great having you contribute to this project

Feel free to raise an Issue! Welcome to the community :nerd_face:

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 馃 . Any questions let us know.

Sadly, discord has strict limits on the embed characters.
However, something that we might consider is pagination.

If someone isn't sure what pagination implies to, here's some context:

bot embed
page-1
鈴笍 鈴癸笍 鈴笍

(the amove emojis are reactions and if the author reacts with those emojis, we could switch to respective pages, by editing the contents of the embed)

_press_ 鈴笍

bot embed
page-2
鈴笍 鈴癸笍 鈴笍

Moreover, since this is a pretty neat feature, we could also find a way to make a default use function for this, to make production of paginated embeds easier

This sounds interesting. Can you share a link or is it in the docs for discordjs?

I think this has to be implemented by ourselves(idk if they have helper methods to make menus)

Could we limit what is displayed in Discord and add a link at the end for people to go read the full article (later on, the markdown can be converted to a webpage)

I think limiting it is possible.
I also found this while playing with the discordjs library:
Screenshot (32)
We could just set half of what we need to .setDescription() and the other half to setFooter() and there is nothing to separate them. They look the same.
So it would become description + footer = 2048 * 2 instead of just 2048. Which should be enough.

What do you think?

I think we will still eventually hit the limit of both combined. So it would be better in the footer to have a link to the GitHub markdown file for more information

for now, perhaps we could truncate the message and add the github link in the footer

(tho later on, we might need pagination for commands)

I think truncate and add the link is the simplest option for now and quite a good one still 馃憤

I think 1000-1200 chars should be okay(from a readability point of view, without completely filling the chatscreen)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vyvy-vi picture Vyvy-vi  路  13Comments

BOLT04 picture BOLT04  路  11Comments

SKULLXL picture SKULLXL  路  15Comments

GoluffyxD picture GoluffyxD  路  12Comments

AllanRegush picture AllanRegush  路  18Comments