<reponame>nosae/TwitterBot
import os
import time;
from markovbot import MarkovBot

# Initialise a MarkovBot instance
tweetbot = MarkovBot()

# Get the current directory's path
dirname = os.path.dirname(os.path.abspath(__file__))
# Construct the path to the book
book = os.path.join(dirname, 'reader.txt')
# Make your bot read the book!
tweetbot.read(book)

my_first_text = tweetbot.generate_text(25, seedword=['dream', 'psychoanalysis'])
print("tweetbot says:")
print(my_first_text)

# ALL YOUR SECRET STUFF!
# Consumer Key (API Key)
cons_key = 'hETlfJv32tJDRZAy56gRlsyNM'
# Consumer Secret (API Secret)
cons_secret = '<KEY>'
# Access Token
access_token = '<KEY>'
# Access Token Secret
access_token_secret = '<KEY>'

# Log in to Twitter
tweetbot.twitter_login(cons_key, cons_secret, access_token, access_token_secret)

tweetbot.twitter_tweeting_start(days=0, hours=0, minutes=1, keywords=None, prefix=None, suffix=None)

#tweetbot.twitter_tweeting_stop()

time.sleep(86400)

import os
import time;
from markovbot import MarkovBot

# Initialise a MarkovBot instance
tweetbot = MarkovBot()

# Get the current directory's path
dirname = os.path.dirname(os.path.abspath(__file__))
# Construct the path to the book
book = os.path.join(dirname, 'reader.txt')
# Make your bot read the book!
tweetbot.read(book)

my_first_text = tweetbot.generate_text(25, seedword=['dream', 'psychoanalysis'])
print("tweetbot says:")
print(my_first_text)

# ALL YOUR SECRET STUFF!
# Consumer Key (API Key)
cons_key = 'hETlfJv32tJDRZAy56gRlsyNM'
# Consumer Secret (API Secret)
cons_secret = '<KEY>'
# Access Token
access_token = '<KEY>'
# Access Token Secret
access_token_secret = '<KEY>'

# Log in to Twitter
tweetbot.twitter_login(cons_key, cons_secret, access_token, access_token_secret)

tweetbot.twitter_tweeting_start(days=0, hours=0, minutes=1, keywords=None, prefix=None, suffix=None)

#tweetbot.twitter_tweeting_stop()

time.sleep(86400)
# Initialise a MarkovBot instance # Get the current directory's path # Construct the path to the book # Make your bot read the book! # ALL YOUR SECRET STUFF! # Consumer Key (API Key) # Consumer Secret (API Secret) # Access Token # Access Token Secret # Log in to Twitter #tweetbot.twitter_tweeting_stop()