# 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 ? [![GitHub license](https://img.shields.io/github/license/Naereen/notebooks.svg)](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. [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/notebooks/graphs/commit-activity) [![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)](https://GitHub.com/Naereen/ama) [![Analytics](https://ga-beacon.appspot.com/UA-38514290-17/github.com/Naereen/notebooks/README.md?pixel)](https://GitHub.com/Naereen/notebooks/) [![ForTheBadge uses-badges](http://ForTheBadge.com/images/badges/uses-badges.svg)](http://ForTheBadge.com) [![ForTheBadge uses-git](http://ForTheBadge.com/images/badges/uses-git.svg)](https://GitHub.com/) [![ForTheBadge built-with-science](http://ForTheBadge.com/images/badges/built-with-science.svg)](https://GitHub.com/Naereen/)