How do you schedule tweets in a bot using JavaScript's setInterval() function? How do you trigger a tweet when a certain event occurs like a user is followed or a tweet is favorited?