Skip to content

Instantly share code, notes, and snippets.

@jjanczyszyn
jjanczyszyn / gist:8c110c04aff7cbd41a5b722d87695f02
Created April 22, 2024 19:17
dummy wavecli service exposing slack commands endpoint
import time
import requests
from flask import Flask, request, jsonify
app: Flask = Flask(__name__)
SLACK_SIGNING_SECRET: str = "your_slack_signing_secret_here"
def send_slack_message(channel: str, text: str, thread_ts: str = None) -> dict:
url: str = "https://slack.com/api/chat.postMessage"