Added icon to messages.
This commit is contained in:
parent
63809baa96
commit
9d27df6eab
2 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ module.exports = {
|
||||||
token: process.env.SLACK_TOKEN,
|
token: process.env.SLACK_TOKEN,
|
||||||
channelIds: ["#daily-typing-tourney"],
|
channelIds: ["#daily-typing-tourney"],
|
||||||
username: "Daily Typing Tourney",
|
username: "Daily Typing Tourney",
|
||||||
|
icon_url: "https://storage.googleapis.com/allons-me-322e36cf-static/daily-typing-tourney.png",
|
||||||
},
|
},
|
||||||
twitter: {
|
twitter: {
|
||||||
username: process.env.TWITTER_USERNAME,
|
username: process.env.TWITTER_USERNAME,
|
||||||
|
|
1
index.js
1
index.js
|
@ -197,6 +197,7 @@ const maybePostMessage = (msg) => {
|
||||||
token: config.slack.token,
|
token: config.slack.token,
|
||||||
channel: channel.id,
|
channel: channel.id,
|
||||||
username: config.slack.username,
|
username: config.slack.username,
|
||||||
|
icon_url: config.slack.icon_url,
|
||||||
});
|
});
|
||||||
|
|
||||||
return slack.chat.postMessage(final);
|
return slack.chat.postMessage(final);
|
||||||
|
|
Loading…
Add table
Reference in a new issue