duck-dynasty / duckbot

A Discord bot for personal friend group
GNU General Public License v3.0
9 stars 10 forks source link

🐛 send multiple messages if solution is too big #1006

Closed twentylemon closed 6 days ago

twentylemon commented 6 days ago
Summary

Fixes #959

Discord has a message size limit, which sometimes big solutions will run into. This chunks up the message into the biggest possible components that can fit into a single message, then send multiple messages.

Checklist
codecov[bot] commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.53%. Comparing base (ba5f2ea) to head (6b3ec39). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1006 +/- ## ========================================== + Coverage 96.51% 96.53% +0.02% ========================================== Files 95 95 Lines 2237 2251 +14 Branches 165 168 +3 ========================================== + Hits 2159 2173 +14 Misses 67 67 Partials 11 11 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: