Open Metacinnabar opened 4 years ago
I can see this being more annoying then helpful
If it were to actually be implemented, it'd most certainly be more helpful than annoying (what would make it annoying at all?).
To better describe what @GoodPro712 was getting at, when a user sends a .log
file, the bot will automatically send a message containing a link to hastebin that has the file already pasted there (this does not delete the original file sent by the user). This is mainly helpful for people who don't want to download .log
files when helping people.
I agree. The bot posting logs will speed up the rather annoying process of clicking on the log file, downloading it, then opening it. Not to mention people who want to help others on mobile who have an even more annoying time viewing logs.
In my opinion, it would be easier to use termbin. The bot already uses this for its own internal logs and its easy to upload with it.
If you mean uploading actual files to paste websites, I'll do it myself
What if the log is over 3000 characters
cat latest.log | tail -n 2000 | nc termbin.com 9999
Overview
When a user sends a .log file, the bot will automatically send a message containing a link to hastebin that has the file already pasted there (this does not delete the original file sent by the user). This is mainly helpful for people who don't want to download .log files when helping people.
An example of this is shown here in this C# bot. https://github.com/tModLoader/tModLoader-Discord-Bot/blob/rework/Services/HastebinService.cs