mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Send date with meme and reddit
This commit is contained in:
@@ -33,6 +33,7 @@ module.exports = class MemeCommand extends SubredditCommand {
|
||||
.setTitle(post.title)
|
||||
.setImage(post.post_hint === 'image' ? post.url : null)
|
||||
.setURL(`https://www.reddit.com${post.permalink}`)
|
||||
.setTimestamp(post.created_utc * 1000)
|
||||
.setFooter(`⬆ ${post.ups}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -28,6 +28,7 @@ module.exports = class RedditCommand extends SubredditCommand {
|
||||
.setTitle(post.title)
|
||||
.setImage(post.post_hint === 'image' ? post.url : null)
|
||||
.setURL(`https://www.reddit.com${post.permalink}`)
|
||||
.setTimestamp(post.created_utc * 1000)
|
||||
.setFooter(`⬆ ${post.ups}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user