Guest User

Untitled

a guest
Jun 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. def conj(word, mood='indicative', tense='present'):
  2. result = commands.getoutput('french-conjugator --mode="%s" --tense="%s" %s' % (mood, tense, word))
  3. if result == '-':
  4. result = commands.getoutput('french-deconjugator '+word)
  5.  
  6. result = ' - '.join(result.splitlines())
  7. phenny.say(result)
  8.  
  9. #and then...
  10.  
  11. args = input.group(2).encode('utf-8').split();
  12. conj(phenny, *args)
Add Comment
Please, Sign In to add comment