DigitalPulseSoftware / NotaBot

Source code of the bot of the french programming discord server NaN (Not a Name).
https://discord.gg/zcWp9sC
MIT License
26 stars 10 forks source link

Include ReadTheBin features inside of NotABot #62

Open Julien00859 opened 2 years ago

Julien00859 commented 2 years ago

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.

Elanis commented 2 years ago

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.