MCPcopy Create free account
hub / github.com/pollinations/pollinations / start_webhook_server

Function start_webhook_server

apps/polly/src/services/webhook_server.py:479–489  ·  view source on GitHub ↗

Start the webhook server if enabled.

(discord_bot=None)

Source from the content-addressed store, hash-verified

477
478
479async def start_webhook_server(discord_bot=None):
480 """Start the webhook server if enabled."""
481 global webhook_server
482
483 if not config.webhook_enabled:
484 logger.info("Webhook server disabled in config")
485 return None
486
487 webhook_server = GitHubWebhookServer(discord_bot)
488 await webhook_server.start()
489 return webhook_server
490
491
492async def stop_webhook_server():

Callers 1

setup_hookMethod · 0.85

Calls 3

startMethod · 0.95
GitHubWebhookServerClass · 0.85
infoMethod · 0.65

Tested by

no test coverage detected