From 02e96a7e0e35b33bfb26e9515948d19f4de15a42 Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Thu, 13 Jan 2022 18:40:31 -0500 Subject: [PATCH 1/2] Fix component file names --- .../list-reminders.js} | 0 .../remove_star.js => remove-star/remove-star.js} | 0 .../reply-to-a-message-thread.js | 2 +- .../actions/delete-message/delete-message.mjs | 8 ++++++-- 4 files changed, 7 insertions(+), 3 deletions(-) rename components/slack/actions/{list_reminders/list_reminders.js => list-reminders/list-reminders.js} (100%) rename components/slack/actions/{remove_star/remove_star.js => remove-star/remove-star.js} (100%) diff --git a/components/slack/actions/list_reminders/list_reminders.js b/components/slack/actions/list-reminders/list-reminders.js similarity index 100% rename from components/slack/actions/list_reminders/list_reminders.js rename to components/slack/actions/list-reminders/list-reminders.js diff --git a/components/slack/actions/remove_star/remove_star.js b/components/slack/actions/remove-star/remove-star.js similarity index 100% rename from components/slack/actions/remove_star/remove_star.js rename to components/slack/actions/remove-star/remove-star.js diff --git a/components/slack/actions/reply-to-a-message-thread/reply-to-a-message-thread.js b/components/slack/actions/reply-to-a-message-thread/reply-to-a-message-thread.js index f82908ecbb0ac..462c540594367 100644 --- a/components/slack/actions/reply-to-a-message-thread/reply-to-a-message-thread.js +++ b/components/slack/actions/reply-to-a-message-thread/reply-to-a-message-thread.js @@ -1,7 +1,7 @@ const slack = require("../../slack.app.js"); module.exports = { - key: "slack-reply-to-a-message", + key: "slack-reply-to-a-message-thread", name: "Reply to a Message Thread", description: "Send a message as a threaded reply", version: "0.1.0", diff --git a/components/telegram_bot_api/actions/delete-message/delete-message.mjs b/components/telegram_bot_api/actions/delete-message/delete-message.mjs index 0866321670468..b63c12294a6f1 100644 --- a/components/telegram_bot_api/actions/delete-message/delete-message.mjs +++ b/components/telegram_bot_api/actions/delete-message/delete-message.mjs @@ -22,8 +22,12 @@ export default { }, }, async run({ $ }) { - const resp = await this.telegramBotApi.deleteMessage(this.chatId, this.messageId); - $.export("$summary", `Successfully deleted the message from chat, "${this.chatId}"`); + const { + chatId, + messageId, + } = this; + const resp = await this.telegramBotApi.deleteMessage(chatId, messageId); + $.export("$summary", `Successfully deleted the message from chat, "${chatId}"`); return resp; }, }; From aceee411ae4ab3498a03a2e2976318c0e1ed64a7 Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Thu, 13 Jan 2022 18:43:53 -0500 Subject: [PATCH 2/2] Rename and fix descriptions of Slack Add Star action --- .../actions/{add_star/add_star.js => add-star/add-star.js} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename components/slack/actions/{add_star/add_star.js => add-star/add-star.js} (83%) diff --git a/components/slack/actions/add_star/add_star.js b/components/slack/actions/add-star/add-star.js similarity index 83% rename from components/slack/actions/add_star/add_star.js rename to components/slack/actions/add-star/add-star.js index aad94c2b5e19a..226c1cf8ff6d6 100644 --- a/components/slack/actions/add_star/add_star.js +++ b/components/slack/actions/add-star/add-star.js @@ -14,7 +14,7 @@ module.exports = { "conversation", ], optional: true, - description: "Channel to add star to, or channel where the message to add star to was posted (used with timestamp).", + description: "Channel to add star to, or channel where the message to add star to was posted (used with timestamp)", }, timestamp: { propDefinition: [ @@ -22,7 +22,7 @@ module.exports = { "timestamp", ], optional: true, - description: "Timestamp of the message to add star to.", + description: "Timestamp of the message to add star to", }, file: { propDefinition: [ @@ -30,7 +30,7 @@ module.exports = { "file", ], optional: true, - description: "File to add star to.", + description: "File to add star to", }, }, async run() {