From 8b0cc15df78776e7cdef1e492871a73f01d781b6 Mon Sep 17 00:00:00 2001
From: Loris TICHADOU <loris.tichadou@ensiie.fr>
Date: Mon, 29 Apr 2019 10:10:45 +0200
Subject: [PATCH] Spoil-free

---
 nardco.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/nardco.py b/nardco.py
index baca0c7..42ab5b4 100755
--- a/nardco.py
+++ b/nardco.py
@@ -225,9 +225,11 @@ class Boooob(ircbot.SingleServerIRCBot):
                     if ratio > 60 and ratio > most_likely[1] : 
                         most_likely = (f, ratio)
                 cmd = most_likely[0]
+            
+            if 'spoil' in args or 'spoil' in cmd : 
+                serv.privmsg(canal, "Le risque de spoil est present. je fais pas ça.")
 
-
-            if cmd == "help":
+            elif cmd == "help":
                 if len(message.split(" ")) > 1:
                     if "reddit" in message.split(" ")[1]:
                         serv.privmsg(
-- 
GitLab