5HT2 / bot-kt

Easy to use Kotlin Discord bot framework
ISC License
13 stars 4 forks source link

Log/Code autopasting #23

Open Metacinnabar opened 4 years ago

Metacinnabar commented 4 years ago

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

5HT2 commented 4 years ago

I can see this being more annoying then helpful

steviegt6 commented 4 years ago

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.

humboldt123 commented 4 years ago

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.

humboldt123 commented 4 years ago

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.

5HT2 commented 4 years ago

If you mean uploading actual files to paste websites, I'll do it myself

not-ivy commented 4 years ago

What if the log is over 3000 characters

5HT2 commented 4 years ago

cat latest.log | tail -n 2000 | nc termbin.com 9999