Guest User

Untitled

a guest
Jun 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def conj(phenny, input):
  2. def conj(word, mood='indicative', tense='present'):
  3. result = commands.getoutput('french-conjugator --mode='+mood+' --tense='+tense+' '+word).replace('\n', ' ')
  4. if result == '-':
  5. result = commands.getoutput('french-deconjugator '+word).replace('\n', ' - ')
  6. phenny.say(result)
  7.  
  8. args = input.group(2).encode('utf-8').split();
  9. conj(phenny, *args)
Add Comment
Please, Sign In to add comment