Skip to content
Extraits de code Groupes Projets
Valider ffd5a354 rédigé par Loris TICHADOU's avatar Loris TICHADOU
Parcourir les fichiers

Update kohlanta.py, nardco.py files

parent bd3f9074
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -9,5 +9,3 @@ sentences = ["$NAME, les aventuriers de la tribu $CHANN ont decidés de vous eli ...@@ -9,5 +9,3 @@ sentences = ["$NAME, les aventuriers de la tribu $CHANN ont decidés de vous eli
def kohlanta (name, channel) : def kohlanta (name, channel) :
return sentences[randrange(0, len(sentences) - 1)].replace("$NAME", name).replace("$CHANN", channel) return sentences[randrange(0, len(sentences) - 1)].replace("$NAME", name).replace("$CHANN", channel)
print(kohlanta("toto", "#titch"))
\ No newline at end of file
...@@ -16,6 +16,7 @@ import viieux ...@@ -16,6 +16,7 @@ import viieux
import codage import codage
import nordpresse import nordpresse
import commit import commit
import kohlanta
# import rateau # import rateau
def couper(pseudo): def couper(pseudo):
...@@ -273,6 +274,10 @@ class Boooob(ircbot.SingleServerIRCBot): ...@@ -273,6 +274,10 @@ class Boooob(ircbot.SingleServerIRCBot):
elif cmd == "viieux" : elif cmd == "viieux" :
serv.privmsg(canal, viieux.get_viieux()) serv.privmsg(canal, viieux.get_viieux())
elif cmd == "kohlanta" :
if (len(args) > 2 ) :
serv.privmsg(canal, kohlanta.kohlanta(args[1], args[2]))
elif cmd == "new" : elif cmd == "new" :
if len(args)>1 : if len(args)>1 :
if args[1] in personnalizedCmd.keys() : if args[1] in personnalizedCmd.keys() :
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter