Change auto mode interval from 30 minutes to 60 minutes
This commit is contained in:
@@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class TweetBot {
|
||||
private static final Logger logger = LoggerFactory.getLogger(TweetBot.class);
|
||||
private static final int SCHEDULE_INTERVAL_MINUTES = 30;
|
||||
private static final int SCHEDULE_INTERVAL_MINUTES = 60;
|
||||
private static GeminiService geminiService;
|
||||
private static TwitterService twitterService;
|
||||
private static String tweetPrompt;
|
||||
@@ -125,7 +125,7 @@ public class TweetBot {
|
||||
// Post immediately on startup
|
||||
postTweetAutomatically();
|
||||
|
||||
// Schedule to run every 30 minutes
|
||||
// Schedule to run every 60 minutes
|
||||
scheduler.scheduleAtFixedRate(() -> {
|
||||
if (isRunning) {
|
||||
postTweetAutomatically();
|
||||
@@ -237,7 +237,7 @@ public class TweetBot {
|
||||
System.out.println("\nUsage:");
|
||||
System.out.println(" java -jar tweetbot.jar [OPTIONS] [CUSTOM_PROMPT]");
|
||||
System.out.println("\nOptions:");
|
||||
System.out.println(" -s, --schedule Run in scheduled mode (posts every 30 minutes)");
|
||||
System.out.println(" -s, --schedule Run in scheduled mode (posts every 60 minutes)");
|
||||
System.out.println(" -a, --auto Auto-post without confirmation (one-time mode)");
|
||||
System.out.println(" -h, --help Show this help message");
|
||||
System.out.println("\nExamples:");
|
||||
@@ -245,7 +245,7 @@ public class TweetBot {
|
||||
System.out.println(" java -jar tweetbot.jar");
|
||||
System.out.println("\n # Auto-post once with custom prompt");
|
||||
System.out.println(" java -jar tweetbot.jar --auto \"Write a tweet about AI\"");
|
||||
System.out.println("\n # Scheduled mode (posts every 30 minutes)");
|
||||
System.out.println("\n # Scheduled mode (posts every 60 minutes)");
|
||||
System.out.println(" java -jar tweetbot.jar --schedule");
|
||||
System.out.println("\n # Scheduled mode with custom prompt");
|
||||
System.out.println(" java -jar tweetbot.jar --schedule \"Daily tech tips\"");
|
||||
|
||||
Reference in New Issue
Block a user