diff --git a/data/message.js b/data/message.js index a4940c8..f142708 100644 --- a/data/message.js +++ b/data/message.js @@ -1,6 +1,6 @@ module.exports = { MESSAGE: { ending: - "\n _You can change your status throughout the day by adding and removing the relevent emoji as a reaction to this message. This does not update your status you will have to do that manually as well._" - } + "\n _You can update your status locally in this channel summary at any time by selecting the relevant reaction emoji on this message. NB, this does not modify your overall Slack status. To add this to your channel just invite the app and set a reminder mentioning it. For more information on installation or question heard to #ftlabs._", + }, }; diff --git a/emojiReact.js b/emojiReact.js index 2db5edf..eabea85 100644 --- a/emojiReact.js +++ b/emojiReact.js @@ -95,6 +95,9 @@ function addName({ text, name, message, type }) { if (!text.includes(message)) { console.log("on herererere"); const textSplit = text.split(MESSAGE.ending); + console.log("message", message); + console.log("text", text); + console.log("textSplit", textSplit); finalMessage = textSplit[0] += `\n ${message} \n ${name} \n ${MESSAGE.ending}`; } else { diff --git a/post.js b/post.js index ddbd6e7..eae9691 100644 --- a/post.js +++ b/post.js @@ -10,7 +10,8 @@ async function postUpdate({ text, channel, test }) { const postingChannel = test ? test : channel; const result = await web.chat.postMessage({ text, - channel: postingChannel + channel: postingChannel, + unfurl_links: false }); console.log( `Successfully send message ${result.ts} in conversation ${postingChannel}`