Skip to content

ryokohbato/slack-quote-watch

Repository files navigation

slack-quote-watch

Receive notifications when your posts are quoted in Slack.

Sample

How to Build / Run

  1. Create a Slack App. The App manifest is as follows:
display_information:
  name: quote-watch
features:
  bot_user:
    display_name: quote-watch
    always_online: true
oauth_config:
  scopes:
    user:
      - channels:history
    bot:
      - chat:write
settings:
  event_subscriptions:
    user_events:
      - message.channels
  interactivity:
    is_enabled: true
  org_deploy_enabled: false
  socket_mode_enabled: true
  token_rotation_enabled: false

App-Level Tokens are required, so don't forget to generate it. Required scope is connections:write.

  1. Install to your workspace and invite it to a public channel.
  2. Create .env file referring to .env.sample.
  3. Edit src/config.ts according to the following table.
Item Description Format
workspaceURL The URL of Slack workspace. https://xxx.slack.com
botChannelID ID of the channel to which the bot is invited. C12345ABCDE
lang Language; English (en) or Japanese (jp) en (or jp)
includeBot Whether to detect quotes by bots as well true or false
  1. yarn install and yarn run build.
  2. Run node dist/main.js.

Feature

Developed using Bolt (Slack). Since it works using socket mode, it does not require an HTTPS connection environment and only requires a server.

About

Receive notifications when your posts are quoted in Slack.

Resources

License

Stars

Watchers

Forks

Packages

No packages published