Added icon to messages.

This commit is contained in:
empathicqubit 2018-07-26 19:16:29 -04:00
parent 63809baa96
commit 9d27df6eab
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ module.exports = {
token: process.env.SLACK_TOKEN,
channelIds: ["#daily-typing-tourney"],
username: "Daily Typing Tourney",
icon_url: "https://storage.googleapis.com/allons-me-322e36cf-static/daily-typing-tourney.png",
},
twitter: {
username: process.env.TWITTER_USERNAME,

View file

@ -197,6 +197,7 @@ const maybePostMessage = (msg) => {
token: config.slack.token,
channel: channel.id,
username: config.slack.username,
icon_url: config.slack.icon_url,
});
return slack.chat.postMessage(final);