This commit is contained in:
Vanessa McHale
2017-03-26 00:29:12 -05:00
parent 1fdfa3c9b9
commit f27aeb5d51
8 changed files with 166 additions and 3525 deletions

22
bin/markovbot Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env python
import markovbot
import twitter
import itertools
import random
# Command line parser
args = markovbot.parser()
# Set the coke binge parameter
if args.coke_binge:
coke_binge_num = random.randint(1, 6)
else:
coke_binge_num = 1
text_model=markovbot.build_model(args.text)
# Make the api keys
api = markovbot.make_api_keys(args.filepath)
markovbot.make_tweets(api, args.test, text_model, coke_binge_num)