bot
bot copied to clipboard
Auto suggest the use of pydis hastebin on longer code messages
When an user posts a codeblock that takes up a majority of the discord message view, it can become difficult to view the code while also communicating with the helped user which usually results in the !paste
tag being sent.
Automating that task in some way could result in the use of the hastebin being used more widely and cleaning up the channels a bit by being suggested right away. Adjusting the flood prevention when code is present may also help the case, for example by sending them a DM with the suggestion after the message removal and mute
I'll go ahead and take care of this one. Already have a couple of ideas on how I want to address it.
I'll go ahead and take care of this one. Already have a couple of ideas on how I want to address it.
@MrHemlock Do you still remember those couple ideas?
I'd like to implement this.
My idea is simple: we already have the codeblock detection for suggesting proper syntax highlighting.
I would build on that, and like to add a total character count and line count, and factor them together somehow, in a way that we can configure them.
EDIT: Contribution window passed as this was not ever responded to.
@MrHemlock Do you still remember those couple ideas?
I had a chat with him, he said he doesn't remembers the ideas. However I think we can implement this like how we have implemented the codeblock one. If this issue is still relevant.
Proposals for similar ideas have been rejected, the worry being that deleting user messages is quite a confusion user experience and it's annoying to lose your message, so I'm not sure this is something we would want.
Some of the previous discussion is here: https://github.com/python-discord/meta/issues/78 https://github.com/python-discord/bot/issues/2116
Proposals for similar ideas have been rejected, the worry being that deleting user messages is quite a confusion user experience and it's annoying to lose your message, so I'm not sure this is something we would want.
Why don't we implement it like the codeblock thingy? We wouldn't delete the messages, we would just tell them to use hastebin for further use or like tell them to edit their message and use the pastebin there and there like it is done for codeblock.