Update conjugaison module by adding tens

This commit is contained in:
Bertrand Cournaud 2014-07-23 15:00:01 +02:00
parent fee11aca42
commit cd16bf8de9

View File

@ -54,8 +54,16 @@ def cmd_conjug(msg):
return Response(msg.sender, return Response(msg.sender,
"Demande incorrecte.\n %s" % help_full(), "Demande incorrecte.\n %s" % help_full(),
msg.channel) msg.channel)
tens = msg.cmds[1] tens = msg.cmds[1]
verb = msg.cmds[2]
for i in range(2, len(msg.cmds) - 1):
tens += " " + msg.cmds[i]
print_debug(tens)
verb = msg.cmds[len(msg.cmds) - 1]
try: try:
conjug = get_conjug(verb, tens) conjug = get_conjug(verb, tens)
except: except: