-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeblocksOverFileUploadsHandler.ts Rework #250
Comments
I still think this is an interesting and cool idea, not sure on the legality of taking content people uploaded to one service and uploading it to another service without their permission. That's my concern. |
Sorry for jumping on this 1 year later --
I understand the current and future implementation -- still not sure what the upside is for the community. What is the value-add for hosting .txt files as opposed to using codeblocks? |
@srezzag If I recall correctly it was for occurrences where a code block would not be big enough to fit the entire piece of code due to Discord's message length rules. I'm not really sure this is needed though, as we don't seem to run into this issue a lot. By the way, thanks for taking an interest in our open source projects. Please ping me over on our Discord server so I know who you are - it'd be great to chat! |
Pinged! 👍 And that makes sense! But the extent to which it helps with longer-form posts, well it'll still be capped at the maximum character length for a post I would imagine. Unless split-posting is a thing in which multiple posts would be generated to accomodate. |
Given that a discord bot is the medium, it would depend on the functions of the discord bot API. Could it do a code block? Yeah if the file has text below the character count. But this just be over engineering, maybe it's time for the mod team to reconsider just disabling the listener for discords supported file types. We didn't like the layout before, but it might be worth a conversation. |
The more I think about this the less I like any implementation, honestly. I ask myself questions like:
|
|
What Functionality Are You Suggesting?
Please describe the functionality below:
Reworking of the CodeblocksOverFileUploadsHandler to automatically upload plain text files to a hosting service.
Why Will This Benefit The Community?
For standard text file uploads, the current bot interaction is to delete the file and redirect them to codeblocks or a Github gist. After discussion with the other moderators, this could be improved by determining when a plain text file is uploaded and automatically uploading the file to a pastebin-like service.
This is not a dev ready feature. Ongoing discussion needs to occur about which service to use, as well as rough implementation plan.
The text was updated successfully, but these errors were encountered: