readthedocs-fr / bin-client-discord Goto Github PK
View Code? Open in Web Editor NEW"Read The Bin": a bot made to push long code snippets to our custom-made bin
License: MIT License
"Read The Bin": a bot made to push long code snippets to our custom-made bin
License: MIT License
The bot should be faster !!!!!!!
Replace "Transformation en cours...." message by a typing indicator
Je pense que l'idée de convertir les gros blocs de codes en bin accessibles facilement est vraiment une bonne idée.
Je me dit toutefois qu'elle pourrait être encore améliorée. Un petit problème c'est que le bot "s'incruste" dans les conversations pour donner le lien.
On pourrais peut-être faire en sorte que le lien généré soit donné de manière un peu plus propre.
Pour cela, je pense que cela pourrait être très bien de le faire à l'aide de webhook.
Les webhooks sont des éléments attachés à un channel qui permettent d'envoyer des messages comme si c'était un réel bot. La particularité intéressante est que l'on peux personnaliser le nom et la photo de profil pour mettre ce que l'on veux.
Je pense que cela pourrait être bien d'utiliser ça, pour faire comme si c'était la personne qui a envoyée le code qui envoie le lien, en plus cela n'est pas forcément problématique parce que on peut utiliser des embeds avec le webhook.
De plus quelque-chose de sympa en plus à faire, ça pourrait être de mettre une image du code un peu comme Carbon pour les codes assez courts pour rendre bien.
Hello there,
I sent a message which was only containing python-styled markdown code:
```python
# the content is useless
```
The bot successfully created the bin at the identifier netype
but the link set by the bot was https://bin.readthedocs.fr/netpython which lead to a 404 snippet not found page.
To reproduce, change the ident = pronounceable_passwd(6)
line of bin/models.py
around line 19 by ident = "netype"
and send a python-styled markdown code.
We should start to "version" this project.
Release-Please would create complete releases (complete changelog, etc.) from the commits. When its PR is merge, the hosted bot would be automatically updated.
In other words, with each release (via Release-Please) the bot is deployed.
(This can be done easily if we use railway.app for hosting the bot.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.