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

Some transcripts are too long for discord mesages #1

Open
1 task
Hpmason opened this issue Mar 18, 2021 · 0 comments
Open
1 task

Some transcripts are too long for discord mesages #1

Hpmason opened this issue Mar 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Hpmason
Copy link
Owner

Hpmason commented Mar 18, 2021

Some transcripts are too long to be sent as a description in an embed (2048 characters). Transcript should be split up into multiple embed "fields" or separated altogether. Currently no response is sent through discord, as the content exceeds the discord's character limit.

Example(s) found to test against:

Things to note:

  • This is different from the embeds created from the !explain command
  • The transcript content the bot sends is different from the transcript provided by xkcd's JSON file because we modify the their markdown to discord's markdown.

Steps needed to take:

  1. After converting the transcript markdown to discord markdown, check content length.
  2. If content length is greater than 2048 characters, change the output to multiple fields using the field or fields method. Fields can only be 1024 characters long, so a message over the 2048 limit would need 3 fields
@Hpmason Hpmason added the bug Something isn't working label Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant