From a21a6fa4a47e0746ef5d51988b089ad778bac18d Mon Sep 17 00:00:00 2001 From: Loris TICHADOU <loris.tichadou@ensiie.fr> Date: Wed, 11 Aug 2021 11:41:56 +0000 Subject: [PATCH] Update nardco.py --- nardco.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nardco.py b/nardco.py index 81efec7..0285a51 100755 --- a/nardco.py +++ b/nardco.py @@ -268,12 +268,13 @@ class Boooob(ircbot.SingleServerIRCBot): if "di" in message : splt = message.split('di') + messages = [] if len(splt) > 1 : - reponse = splt[1] - if reponse[0:1] == "s " : - reponse = reponse[2:] + for f in len(splt[1:]) : + messages.append(splt[f:].join('di')) - serv.privmsg(canal, reponse) + for f in messages : + serv.privmsg(canal, f) # REDDIT // A COMPLETER if isCommande(message): -- GitLab