Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
Updated the version 1.0 after testing the API Twitter
  • Loading branch information
juliancamposes authored Mar 2, 2022
1 parent 119cd7b commit 8baecd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public static void main (String[]Args) throws InterruptedException, TwitterExcep
quote = DailyQuote.getQuote();
author = DailyQuote.getAuthor();
tweetOfTheDay = createTweet(quote, author);
System.out.println(tweetOfTheDay);

//Twitter API using Twitter4j library
//For tweet you need higher access level than essential (Elevated access)
Expand All @@ -55,7 +54,7 @@ public static void main (String[]Args) throws InterruptedException, TwitterExcep

public static String createTweet(String quote, String author){
String authorWithoutSpaces = author.replace(" ","");
String tweetOfTheDay = "\""+ quote + "\"\n" + author + "\n#filosofia #estoicismo #"+authorWithoutSpaces+" #citasestoicas";
String tweetOfTheDay = "\""+ quote + "\"\n\n" + author + "\n\n#filosofia #estoicismo #"+authorWithoutSpaces+" #citasestoicas";

//checking the number of characters and shorting if it is more than 160

Expand Down

0 comments on commit 8baecd3

Please # to comment.