-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
Hello,
I am trying to leverage the packaged version, and adding additional functionality per this documentation: https://github.com/monzo/response/blob/master/docs/development.md
In manage.py I've added:
import ui.keyword_handlers
I've created a new file called keyword_handlers.py:
import json
import re
from response.core.models.incident import Incident
from response.slack.models import HeadlinePost, CommsChannel, UserStats, PinnedMessage
from response.slack.decorators import slack_event, handle_incident_command, handle_keywords, keyword_handler
@keyword_handler(['status page', 'statuspage'])
def status_page_notification(comms_channel: CommsChannel, user: str, text: str, ts: str):
comms_channel.post_in_channel(f"ℹ️ You mentioned the Status Page - <{settings.STATUS_PAGE_RUNBOOK}|here's the runbook> on how to put it up.")
This isn't working though. How can I add this additional functionality to the packaged version?
Thank you.
Metadata
Metadata
Assignees
Labels
No labels