Refactor prompts into package, make the prompt able to be stored with the AI config and changed. Fix settings file.

This commit is contained in:
BillSchumacher
2023-04-15 22:15:34 -05:00
parent 1af463b03c
commit b7a29e71cd
11 changed files with 48 additions and 36 deletions

View File

@@ -7,9 +7,9 @@ load_dotenv()
def send_tweet(tweet_text):
consumer_key = os.environ.get("TW_CONSUMER_KEY")
consumer_secret= os.environ.get("TW_CONSUMER_SECRET")
access_token= os.environ.get("TW_ACCESS_TOKEN")
access_token_secret= os.environ.get("TW_ACCESS_TOKEN_SECRET")
consumer_secret = os.environ.get("TW_CONSUMER_SECRET")
access_token = os.environ.get("TW_ACCESS_TOKEN")
access_token_secret = os.environ.get("TW_ACCESS_TOKEN_SECRET")
# Authenticate to Twitter
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)