Auto-create and reuse bot-owned webhooks #59

Merged
aronson merged 6 commits from webhooks into main 2023-12-11 03:53:06 +00:00
aronson commented 2023-12-10 09:58:28 +00:00 (Migrated from github.com)

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)
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)
MTF (Migrated from github.com) reviewed 2023-12-10 20:01:54 +00:00
@ -49,7 +49,7 @@ export type Config = {
parallelPingFix?: boolean;
MTF (Migrated from github.com) commented 2023-12-10 20:01:54 +00:00

Unknown? Shouldn't this be a boolean

Unknown? Shouldn't this be a boolean
aronson (Migrated from github.com) reviewed 2023-12-10 20:03:03 +00:00
@ -49,7 +49,7 @@ export type Config = {
parallelPingFix?: boolean;
aronson (Migrated from github.com) commented 2023-12-10 20:03:03 +00:00

No actually, this is a clever trick to support users with the old record config transparently.

No actually, this is a clever trick to support users with the old record config transparently.
aronson (Migrated from github.com) reviewed 2023-12-10 20:12:44 +00:00
@ -49,7 +49,7 @@ export type Config = {
parallelPingFix?: boolean;
aronson (Migrated from github.com) commented 2023-12-10 20:12:44 +00:00

As we discussed, this will become a Boolean

As we discussed, this will become a Boolean
MTF (Migrated from github.com) approved these changes 2023-12-11 03:46:15 +00:00
Sign in to join this conversation.
No description provided.