You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
355 B
Python

4 years ago
def send_tweet(bot, tweet_text):
"""Sends a tweet to Twitter"""
4 years ago
bot.update_status(status=tweet_text)
4 years ago
def follow_someone(bot, username):
"""Follows someone based on given username"""
4 years ago
bot.create_friendship(username=username)
4 years ago
def like_tweet(bot, tweet_id):
"""Likes a tweet based on it's ID"""
4 years ago
bot.create_favorite(id=tweet_id)