Discord bot to automatically add a /spoiler
tag to any code snippet
Goal
See this StackOverflow post I wrote on November 2nd 2020.
Answer
« When a code snippet is detected, automatically delete the user’s post and repost it from the bot with spoiler enabled. Apply basic information such as who originally posted the message. » Tin Nguyen’s answer
Code
I tried to do that, but it appears that at of the time of writing (November 2020), it’s just not possible to have both the /spoiler
hidden effet and the code markup (syntax highlighthing), so I stopped trying.
What else is here?
There is a tiny Discord bot with small features (undocumente, read the source code, it’s easy to understand):
- print a random Joke, using @15Dkatz/official_joke_api,
- :fr: affiche une citation inspirée par les phrases pseudo-latines du Roi Loth de Kaamelott, générée aléatoirement par une grosse chaîne de Markov,
- and more!
:scroll: License ? 
This repository are published under the terms of the MIT License (file LICENSE.txt). © Lilian Besson, 2020.