{"id":24627891,"url":"https://github.com/suttna/botbuilder-slack-extension","last_synced_at":"2025-10-17T05:24:15.353Z","repository":{"id":86760522,"uuid":"98854943","full_name":"suttna/botbuilder-slack-extension","owner":"suttna","description":"Slack extension for Microsoft BotBuilder. Deprecated use https://github.com/suttna/botbuilder-slack","archived":false,"fork":false,"pushed_at":"2017-12-02T00:14:20.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T20:02:05.094Z","etag":null,"topics":["botbuilder","nodejs","slack"],"latest_commit_sha":null,"homepage":"https://suttna.com","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suttna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-31T06:19:48.000Z","updated_at":"2017-12-02T00:14:58.000Z","dependencies_parsed_at":"2023-07-16T05:31:01.241Z","dependency_job_id":null,"html_url":"https://github.com/suttna/botbuilder-slack-extension","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":"0.23076923076923073","last_synced_commit":"c0d5cd73d88e16a44158dbc374bfd53279fa4e52"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-slack-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-slack-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-slack-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-slack-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suttna","download_url":"https://codeload.github.com/suttna/botbuilder-slack-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949271,"owners_count":21830151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["botbuilder","nodejs","slack"],"created_at":"2025-01-25T05:13:38.245Z","updated_at":"2025-10-17T05:24:10.315Z","avatar_url":"https://github.com/suttna.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](logo.png)\n\n# botbuilder-slack-extension [![npm version](https://badge.fury.io/js/botbuilder-slack-extension.svg)](https://badge.fury.io/js/botbuilder-slack-extension) [![CircleCI](https://circleci.com/gh/suttna/botbuilder-slack-extension.svg?style=svg)](https://circleci.com/gh/suttna/botbuilder-slack-extension)\n\n\u003e ⚠️ **Deprecated** Use [botbuilder-slack](https://github.com/suttna/botbuilder-slack)\n\nSlack extension for Microsoft BotBuilder.\n\nThis extension will listen for missing (in BotBuilder slack connector) events.\n\nThe following events are allowed and need to be configured in slack:\n\n\u003e Note: You need to manually add the events in this page: https://api.slack.com/apps/:APP_ID/event-subscriptions\n\n## conversationUpdate\n\n- channel_archive\n- channel_created\n- channel_deleted\n- channel_rename\n- channel_unarchive\n- group_archive\n- group_rename\n- group_unarchive\n\n## installationUpdate\n\n- app_uninstalled\n\n## slackCommand\n\nYou can listen for slack commands. Commands will be sent as custom events with type `slackCommand`. Event\ninformation will be sent under `sourceEvent =\u003e SlackMessage`.\n\n## Install\n\n```\nyarn add botbuilder-slack-extension\n```\n\n## Usage\n\nThe extension will listen for the previously listed slack events and forward them as `conversationUpdate` events.\n\nThis means you can use:\n\n```javascript\n bot.on('event', function(event) {\n  // Handle event here\n })\n\n bot.on('slackCommand', function(event) {\n  // If you want to use slack commands\n })\n```\n\nTo configure the extension you simply need to create a listener and hook it in your restify server.\n\n```javascript\nvar restify = require('restify')\nvar builder = require('botbuilder')\nvar SlackEventListener = require('botbuilder-slack-extension')\n\nvar connector = new builder.ChatConnector()\nvar bot = new builder.UniversalBot(connector)\n\n// SlackEventListener take two arguments, the chat connector and a lookup function for your bot.\n// The lookup function must return a promise with an object that conforms to IIdentity\nvar slackEventListener = new SlackEventListener(connector, function (teamId) {\n  return new Promise(function (resolve, reject) {\n    // This is your custom get function\n    const bot = getBot(teamId)\n\n    return { id: bot.id, name: bot.name }\n  })\n})\n\n// Start listenting for botbuilder events\nserver.post('/bot', dependencies.botConnector.listen())\n\n// Start listenting for direct slack events\nserver.post('/your-slack-path-for-events', slackEventListener.webhooksHandler())\n\n// Start listenting for slack commands\nserver.post('/your-slack-path-for-commands', slackEventListener.commandsHandler())\n```\n\n## Contact\n\n- Martín Ferández \u003cmartin@suttna.com\u003e\n- Santiago Doldán \u003csantiago@suttna.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuttna%2Fbotbuilder-slack-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuttna%2Fbotbuilder-slack-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuttna%2Fbotbuilder-slack-extension/lists"}