Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple webhooks and Instagram accounts #20

Open
1 task done
RyanLua opened this issue Dec 4, 2024 · 0 comments · May be fixed by #46
Open
1 task done

Allow multiple webhooks and Instagram accounts #20

RyanLua opened this issue Dec 4, 2024 · 0 comments · May be fixed by #46
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@RyanLua
Copy link
Owner

RyanLua commented Dec 4, 2024

Is your feature request related to a problem?

You need to have multiple InstaWebhooks instances open if you want to monitor multiple Instagram accounts to a webhook or multiple webhooks for a Instagram account.

Describe the solution you'd like

Being able to specify a list of webhooks or Instagram accounts.

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@RyanLua RyanLua added the enhancement New feature or request label Dec 4, 2024
@RyanLua RyanLua assigned RyanLua and unassigned RyanLua Jan 14, 2025
@RyanLua RyanLua added the good first issue Good for newcomers label Jan 14, 2025
@RyanLua RyanLua self-assigned this Feb 5, 2025
RyanLua added a commit that referenced this issue Feb 5, 2025
Fixes #20

Add support for multiple webhooks and Instagram accounts.

* **Parser Updates:**
  - Update `parser.add_argument` for `instagram_username` to accept multiple usernames.
  - Update `parser.add_argument` for `discord_webhook_url` to accept multiple URLs.
  - Update help text to reflect the new functionality.

* **Main Logic Updates:**
  - Update `args.instagram_username` to handle a list of usernames.
  - Update `args.discord_webhook_url` to handle a list of URLs.
  - Update `check_for_new_posts` function to iterate over multiple Instagram accounts and webhooks.
  - Update `send_to_discord` function to handle multiple webhooks.

* **Documentation Updates:**
  - Update `docs/source/usage.rst` to show usage with multiple Instagram usernames and Discord webhook URLs.
  - Update `docs/source/getting-started.rst` to reflect the new functionality of specifying multiple webhooks or Instagram accounts.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/RyanLua/InstaWebhooks/issues/20?shareId=XXXX-XXXX-XXXX-XXXX).
@RyanLua RyanLua linked a pull request Feb 5, 2025 that will close this issue
2 tasks
@RyanLua RyanLua added this to the v0.1.4 milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant