Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def conj(phenny, input):
- def conj(word, mood='indicative', tense='present'):
- result = commands.getoutput('french-conjugator --mode='+mood+' --tense='+tense+' '+word).replace('\n', ' ')
- if result == '-':
- result = commands.getoutput('french-deconjugator '+word).replace('\n', ' - ')
- phenny.say(result)
- args = input.group(2).encode('utf-8').split();
- conj(phenny, *args)
Add Comment
Please, Sign In to add comment