Index of /besson/publis/Discord-bot-to-add-spoiler-to-any-code-snippet.git

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  - Root of the website (in English or in French)
[DIR]tests/2020-11-04 21:32 -  
[TXT]Generer_des_fausses_citations_latines_du_Roi_Loth.py2020-11-05 11:41 9.3K 
[TXT]LICENSE.txt2020-10-31 11:48 1.1K 
[   ]Makefile2020-11-04 16:26 227  
[TXT]README.md2020-11-04 16:28 1.7KSome details about this page
[   ]_config.yml2020-11-04 21:43 25  
[IMG]bot-icon.jpg2020-11-04 21:43 41K 
[   ]bot.token2020-11-04 21:45 59  
[TXT]discord_bot.py2020-11-05 12:15 13K 
[TXT]quotes.txt2020-11-04 20:22 539K 
[TXT]requirements.txt2020-11-04 21:30 32  
[TXT]roles_lib.py2020-11-05 11:50 4.4K 
[TXT]test.txt2020-11-04 22:33 1.2K 
# 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/)