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

Scam logs cause restart of the bot if the message is longer than 1024 characters #29

Closed
pdellaert opened this issue Feb 10, 2024 · 0 comments · Fixed by #30
Closed

Scam logs cause restart of the bot if the message is longer than 1024 characters #29

pdellaert opened this issue Feb 10, 2024 · 0 comments · Fixed by #30
Labels
good first issue Good for newcomers

Comments

@pdellaert
Copy link
Collaborator

Bug type

Wrong data or information

Describe the bug

When a long message of over 1024 characters contains @everyone and gets caught by scam logs, it will restart the bot because of an exception with core content:

embeds[0].fields[2].value[BASE_TYPE_MAX_LENGTH]: Must be 1024 or fewer in length.

More details:
https://logs.betterstack.com/team/205992/tail?q=&s=662625&a=1707528913978168.126000002

Expected behavior

Bot does not restart on large messages being captured as part of scam logging

Steps to reproduce

  1. Run the bot
  2. Post a message over 1024 characters long, with @everyone in it.

References (optional)

Similar issue as #19

Additional info (optional)

No response

Discord Username (optional)

straks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants