tModLoader / tModLoader-Discord-Bot

A Discord bot written in C# using Discord.Net to serve the tModLoader server. Uses .NET Core 2.0+
https://tmodloader.net/
Apache License 2.0
12 stars 9 forks source link

Auto-Hastebin is too aggressive #48

Open aki-art opened 3 months ago

aki-art commented 3 months ago

It created a hastebin from this message: https://hst.sh/onadozajiw.cs

This only made my message harder to read, that is a very small code snippet. Please tone down how big code snippets it considers clutter, for small bits of code it is unnecessary to make people open a web browser.

Or alternatively, don't bother deleting the original message, Discord already truncates long blocks of code for a while now. A hastebin link could still be neat for those who prefer it.

Jofairden commented 2 months ago

https://github.com/tModLoader/tModLoader-Discord-Bot/blob/main/Services/HastebinService.cs#L79

Feel free to improve the heuristics for this feature here.