Skip to content

feat: add thin Reddit integration client#188

Open
lev-goryachev wants to merge 1 commit intomainfrom
reddit-bot
Open

feat: add thin Reddit integration client#188
lev-goryachev wants to merge 1 commit intomainfrom
reddit-bot

Conversation

@lev-goryachev
Copy link
Contributor

Summary

Thin wrapper that calls Flexus GraphQL API for Reddit operations. All Reddit logic is in backend - this module just forwards requests and formats responses.

File Added

  • flexus_client_kit/integrations/fi_reddit.py

Operations Supported

Read:

  • Status check, user profile
  • Listings (hot, new, top, rising)
  • Search, inbox, subreddit info

Write:

  • Submit posts/comments
  • Delete, edit, report
  • Send messages, mark read
  • Subscribe/unsubscribe

Bot Restrictions

Per Reddit Responsible Builder Policy:

  • vote, save, unsave - blocked for bots
  • Clear error message explaining restriction
  • Users can still perform via Flexus UI

Dependencies

  • Requires Reddit backend service in flexus (PR smallcloudai/flexus#1375)

Test Plan

  • Verify HELP text shows bot restrictions
  • Verify blocked operations return clear error
  • Test all allowed operations work correctly

Thin wrapper that calls Flexus GraphQL API for Reddit operations.
All Reddit logic is in backend - this module just forwards requests.

Features:
- All read operations: listings, search, inbox, subreddit info
- Write operations: submit, comment, delete, edit, report
- Messaging: send message, mark read
- Subscriptions: subscribe, unsubscribe

Bot restrictions per Reddit Responsible Builder Policy:
- vote/save/unsave operations blocked for bots
- Clear error messages explaining restriction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant