This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import time | |
| def get_message(emotion): | |
| messages = { | |
| "happy": [ | |
| "Stay positive and keep smiling!", | |
| "Happiness is contagious, spread it around!", | |
| "Embrace the good vibes today!", | |
| "Share your joy with the world!", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import time | |
| def get_random_compliment(): | |
| compliments = [ | |
| "You are amazing!", | |
| "You're a true inspiration!", | |
| "Keep up the great work!", | |
| "You have a heart of gold!", | |
| "Your creativity knows no bounds!", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| def get_random_compliment(): | |
| compliments = [ | |
| "You are amazing!", | |
| "You're a true inspiration!", | |
| "Keep up the great work!", | |
| "You have a heart of gold!", | |
| "Your creativity knows no bounds!", | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install tweepy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tweepy | |
| # Replace these values with your own credentials | |
| API_KEY = 'your_api_key' | |
| API_SECRET_KEY = 'your_api_secret_key' | |
| ACCESS_TOKEN = 'your_access_token' | |
| ACCESS_TOKEN_SECRET = 'your_access_token_secret' | |
| auth = tweepy.OAuthHandler(API_KEY, API_SECRET_KEY) | |
| auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET) |
NewerOlder