Skip to content

Commit

Permalink
fix: limit
Browse files Browse the repository at this point in the history
  • Loading branch information
hyacinthus committed Jan 18, 2025
1 parent 0973484 commit 56687af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skills/twitter/post_tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _run(self, text: str) -> str:
# Check rate limit only when not using OAuth
if not self.twitter.use_key:
is_rate_limited, error = self.check_rate_limit(
max_requests=20, interval=1440
max_requests=24, interval=1440
)
if is_rate_limited:
return f"Error posting tweet: {error}"
Expand Down
2 changes: 1 addition & 1 deletion skills/twitter/reply_tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _run(self, tweet_id: str, text: str) -> str:
# Check rate limit only when not using OAuth
if not self.twitter.use_key:
is_rate_limited, error = self.check_rate_limit(
max_requests=20, interval=1440
max_requests=48, interval=1440
)
if is_rate_limited:
return f"Error replying to tweet: {error}"
Expand Down

0 comments on commit 56687af

Please sign in to comment.