Index of /besson/publis/Discord-bot-to-add-spoiler-to-any-code-snippet.git
# Discord bot to automatically add a `/spoiler` tag to any code snippet
## Goal
See [this StackOverflow post](https://stackoverflow.com/questions/64645674/how-to-automatically-mark-as-spoiler-a-snippet-of-code-in-discord?noredirect=1#comment114303076_64645674) 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](https://stackoverflow.com/questions/64645674/how-to-automatically-mark-as-spoiler-a-snippet-of-code-in-discord?noredirect=1#comment114303076_64645674)
## Code
TODO
---
## :scroll: License ? [](https://github.com/Naereen/notebooks/blob/master/LICENSE)
This repository are published under the terms of the [MIT License](https://lbesson.mit-license.org/) (file [LICENSE.txt](LICENSE.txt)).
© [Lilian Besson](https://GitHub.com/Naereen), 2020.
[](https://GitHub.com/Naereen/notebooks/graphs/commit-activity)
[](https://GitHub.com/Naereen/ama)
[](https://GitHub.com/Naereen/notebooks/)
[](http://ForTheBadge.com)
[](https://GitHub.com/)
[](https://GitHub.com/Naereen/)