mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Fix
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = class MemePosterClient extends WebhookClient {
|
|||||||
|
|
||||||
post(post) {
|
post(post) {
|
||||||
const url = embedURL(post.title, `<https://www.reddit.com${post.permalink}>`);
|
const url = embedURL(post.title, `<https://www.reddit.com${post.permalink}>`);
|
||||||
return this.send(`**r/${subreddit}** ${url}\n${post.url}`);
|
return this.send(`**r/${post.subreddit}** ${url}\n${post.url}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async fetchRandomPost(nsfw) {
|
async fetchRandomPost(nsfw) {
|
||||||
@@ -22,7 +22,8 @@ module.exports = class MemePosterClient extends WebhookClient {
|
|||||||
return {
|
return {
|
||||||
subreddit,
|
subreddit,
|
||||||
title: post.title,
|
title: post.title,
|
||||||
url: post.permalink,
|
url: post.url,
|
||||||
|
permalink: post.permalink,
|
||||||
type: post.post_hint,
|
type: post.post_hint,
|
||||||
nsfw: post.over_18 || false
|
nsfw: post.over_18 || false
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user