diff options
| author | 2021-05-03 10:13:41 +0530 | |
|---|---|---|
| committer | 2021-10-11 12:05:40 +0530 | |
| commit | c8a8cec90b376ea5e2a191957b82bab8d519ff00 (patch) | |
| tree | c43b47e67fbf11c9b670a37e73cbb0a6f8aaa6c3 /tests | |
| parent | Write tests for this feature (diff) | |
Rework text shortner.
Explanation: It is unnecessary to show 300 characters, when there is only one word which is so long, so if there is only one word in the text, it would be truncated to 50 words. Also in some cases, there are messages of many lines with 1 word on each line(say), this would again make the embed big and polluting, so it would limit the number of lines to a maximum of 3. Rest of the feature is the same as before.
This implementation has been inspired from the `format_output` function of snekbox cog.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions