From 8bf2368f66fa3f6b15eb63b17e8520abee833058 Mon Sep 17 00:00:00 2001 From: Loris TICHADOU <loris.tichadou@ensiie.fr> Date: Wed, 11 Aug 2021 11:51:47 +0000 Subject: [PATCH] Update nardco.py --- nardco.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nardco.py b/nardco.py index 2ce3b21..47c7254 100755 --- a/nardco.py +++ b/nardco.py @@ -268,16 +268,16 @@ class Boooob(ircbot.SingleServerIRCBot): if not is_l_heure_de_manger() and should_ban(message): serv.privmsg(canal, "PUTAIN ON A DIT NON") - if "di" in message : - splt = message.split('di') - messages = [] - if len(splt) > 1 : - for f in range(len(splt[1:])) : - messages.append('di'.join(splt[f+1:])) - - for f in messages : - serv.privmsg(canal, f) - time.sleep(100) + # if "di" in message : + # splt = message.split('di') + # messages = [] + # if len(splt) > 1 : + # for f in range(len(splt[1:])) : + # messages.append('di'.join(splt[f+1:])) + # + # for f in messages : + # serv.privmsg(canal, f) + # time.sleep(100) # REDDIT // A COMPLETER elif isCommande(message): -- GitLab