huskies: merge 858
This commit is contained in:
@@ -24,6 +24,7 @@ pub struct SlackTransport {
|
||||
}
|
||||
|
||||
impl SlackTransport {
|
||||
/// Creates a new `SlackTransport` authenticated with the given bot token.
|
||||
pub fn new(bot_token: String) -> Self {
|
||||
Self {
|
||||
bot_token,
|
||||
|
||||
@@ -6,10 +6,15 @@
|
||||
//! - [`webhook_receive`] — Poem handler for the Slack Events API webhook
|
||||
//! (POST incoming events including URL verification challenge).
|
||||
|
||||
/// Slack bot command handlers — parses and dispatches bot commands from Slack messages.
|
||||
pub mod commands;
|
||||
/// Slack message formatter — converts markdown to Slack mrkdwn syntax.
|
||||
pub mod format;
|
||||
/// Slack conversation history — loads prior chat history for context.
|
||||
pub mod history;
|
||||
/// SlackTransport — `ChatTransport` implementation for the Slack Bot API.
|
||||
pub mod meta;
|
||||
/// Slack request signature verification — validates HMAC-SHA256 signatures on incoming webhooks.
|
||||
pub mod verify;
|
||||
|
||||
pub use commands::SlackWebhookContext;
|
||||
@@ -38,6 +43,7 @@ pub struct SlackEventEnvelope {
|
||||
pub event: Option<SlackEvent>,
|
||||
}
|
||||
|
||||
/// A single Slack event payload (message, reaction, etc.) nested inside an event callback.
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct SlackEvent {
|
||||
pub r#type: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user