Fix link posting not actually receiving message to post
This commit is contained in:
parent
e0ecf01941
commit
d2d729b9c4
2
index.js
2
index.js
|
@ -16,7 +16,7 @@ module.exports = {
|
||||||
//set the interval function to check the feed
|
//set the interval function to check the feed
|
||||||
intervalFunc = () => {
|
intervalFunc = () => {
|
||||||
Feed.check((err, articles) => {
|
Feed.check((err, articles) => {
|
||||||
Links.validate(err, articles, Actions.post);
|
Links.validate(err, articles, (latestLink) => Actions.post(bot, latestLink));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue