From f9565bf4daa17716e907f032f37a2facec3b9f8d Mon Sep 17 00:00:00 2001 From: Xhuliano Brace Date: Wed, 24 Jan 2024 17:03:06 -0800 Subject: [PATCH 1/2] slack command flexibility --- src/functions/slack-command-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/slack-command-handler.ts b/src/functions/slack-command-handler.ts index e7acacb..0be812b 100644 --- a/src/functions/slack-command-handler.ts +++ b/src/functions/slack-command-handler.ts @@ -79,7 +79,7 @@ export const handler = async ( } let commandStatus; - if (body.command === '/new_conversation') { + if (body.command.startsWith('/new_conv')) { const channelKey = getChannelKey('message', body.team_id, body.channel_id, 'n/a'); logger.debug(`Slash command: ${body.command} - deleting channel metadata for '${channelKey}'`); await deleteChannelMetadata(channelKey, dependencies, slackEventsEnv); From 9e5ff45aee1f4c8cea1f32a64f52d37058e477bf Mon Sep 17 00:00:00 2001 From: rstrahan Date: Fri, 26 Jan 2024 23:08:04 +0000 Subject: [PATCH 2/2] v0.1.3 --- CHANGELOG.md | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37be420..792a1a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.1.3] - 2023-01-26 +### Fixed + - Merged #25 - adds flexibility to accomodate multiple slack applications with unique variations of the + `/new_conversation` slash command. The command may be now customized to have any name starting with `/new_conv` - + e.g. `/new_conv_appa`, `/new_conv_appb`, etc. + + ## [0.1.2] - 2023-01-11 ### Fixed - Prebuild CloudFormation template region parameter default now matches template region for us-west-2 @@ -30,7 +37,8 @@ Initial release - Process up to 5 attached files for document question answering, summaries, etc. - Reset and start new conversation in DM channel by using `/new_conversation` -[Unreleased]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/compare/v0.1.2...develop +[Unreleased]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/compare/v0.1.3...develop +[0.1.3]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.3 [0.1.2]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.2 [0.1.1]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.1 [0.1.0]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.0 diff --git a/package.json b/package.json index 807055f..a66505e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my_amazon_q_slack_bot", - "version": "0.1.2", + "version": "0.1.3", "bin": { "my_enterprise_q_slack_bot": "bin/my_amazon_q_slack_bot.js" },