DigitalPulseSoftware/NotaBot

Include ReadTheBin features inside of NotABot

Julien00859 opened this issue · 1 comments

The bot read-the-bin is a bot that scan messages to find long snippet of codes, i.e. 12+ lines of markdown code-blocks. When such a message is found, it automatically uploads the content of the message to https://bin.readthedocs.fr, my own pastebin-like website. The objective of this bot is to prevent users from posting code that would take the entire screen.

The read-the-bin bot is not always available and its development staled. We suggest to re-implement it our way inside of not-a-bot.

An alternative that has been discussed on Not a Name Discord server that could be better on an User-Experience side would be to use integrated code file preview feature.
image

We should detect big code samples (more than X lines) and transform those message to this kind of embed files.