Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Auto-create and reuse bot-owned webhooks #59

Merged
merged 6 commits into from
Dec 11, 2023
Merged

Auto-create and reuse bot-owned webhooks #59

merged 6 commits into from
Dec 11, 2023

Conversation

aronson
Copy link
Owner

@aronson aronson commented Dec 10, 2023

The bot can create its own webhooks. I wrote this a while ago.

Idea:

  • Bot creates its own webhooks when reading channel list in channelMapping.ts
  • Bot searches for existing webhooks by channel and webhook name
  • config.json now only cares if webhook field defined whatsoever to enable (matches original behavior)
  • Mixed states of some webhook and some non-webhook no longer supported (could add back later)

lib/config.ts Outdated Show resolved Hide resolved
@aronson aronson merged commit e4ca652 into main Dec 11, 2023
6 checks passed
@aronson aronson deleted the webhooks branch December 11, 2023 03:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants