mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Awwnime Command, Reddit command fixes and new subs
This commit is contained in:
@@ -224,7 +224,7 @@ in the appropriate channel's topic to use it.
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
Total: 458
|
Total: 459
|
||||||
|
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
@@ -320,6 +320,7 @@ Total: 458
|
|||||||
|
|
||||||
### Random Image:
|
### Random Image:
|
||||||
|
|
||||||
|
* **awwnime:** Responds with cute random anime art.
|
||||||
* **bird:** Responds with a random image of a bird.
|
* **bird:** Responds with a random image of a bird.
|
||||||
* **bunny:** Responds with a random image of a bunny.
|
* **bunny:** Responds with a random image of a bunny.
|
||||||
* **cat:** Responds with a random cat image.
|
* **cat:** Responds with a random cat image.
|
||||||
@@ -1226,9 +1227,9 @@ here.
|
|||||||
- [Overtime2005](https://github.com/Overtime2005)
|
- [Overtime2005](https://github.com/Overtime2005)
|
||||||
* alert (Concept)
|
* alert (Concept)
|
||||||
* dislike (Concept)
|
* dislike (Concept)
|
||||||
* hentai (Subreddit List)
|
* hentai (Original Subreddit List)
|
||||||
* like (Concept)
|
* like (Concept)
|
||||||
* porn (Subreddit List)
|
* porn (Original Subreddit List)
|
||||||
* simp (Concept)
|
* simp (Concept)
|
||||||
- [PAC-MAN Party](http://pacman.com/en/pac-man-games/pac-man-party)
|
- [PAC-MAN Party](http://pacman.com/en/pac-man-games/pac-man-party)
|
||||||
* balloon-pop (Concept)
|
* balloon-pop (Concept)
|
||||||
@@ -1285,6 +1286,7 @@ here.
|
|||||||
- [RedBubble - Akbar Mna](https://www.redbubble.com/en/people/akbarmna/shop)
|
- [RedBubble - Akbar Mna](https://www.redbubble.com/en/people/akbarmna/shop)
|
||||||
* hat ([Megumin Hat Image](https://www.redbubble.com/people/akbarmna/works/25443591-megumins-hat-minimalistic?p=poster))
|
* hat ([Megumin Hat Image](https://www.redbubble.com/people/akbarmna/works/25443591-megumins-hat-minimalistic?p=poster))
|
||||||
- [Reddit](https://www.reddit.com/)
|
- [Reddit](https://www.reddit.com/)
|
||||||
|
* awwnime ([API](https://www.reddit.com/dev/api/))
|
||||||
* hentai ([API](https://www.reddit.com/dev/api/))
|
* hentai ([API](https://www.reddit.com/dev/api/))
|
||||||
* meme ([API](https://www.reddit.com/dev/api/))
|
* meme ([API](https://www.reddit.com/dev/api/))
|
||||||
* porn ([API](https://www.reddit.com/dev/api/))
|
* porn ([API](https://www.reddit.com/dev/api/))
|
||||||
|
|||||||
@@ -19,5 +19,12 @@
|
|||||||
"nsfw_plowcam",
|
"nsfw_plowcam",
|
||||||
"legalteens",
|
"legalteens",
|
||||||
"pornstarlethq",
|
"pornstarlethq",
|
||||||
"biggerthanyouthought"
|
"biggerthanyouthought",
|
||||||
|
"onoff",
|
||||||
|
"shorthairchicks",
|
||||||
|
"petitegonewild",
|
||||||
|
"plastt",
|
||||||
|
"bustypetite",
|
||||||
|
"cumsluts",
|
||||||
|
"amateur"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
const SubredditCommand = require('../../structures/commands/Subreddit');
|
||||||
|
const { MessageEmbed } = require('discord.js');
|
||||||
|
const { formatNumber } = require('../../util/Util');
|
||||||
|
|
||||||
|
module.exports = class AwwnimeCommand extends SubredditCommand {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'awwnime',
|
||||||
|
aliases: ['aww-anime', 'moe'],
|
||||||
|
group: 'random-img',
|
||||||
|
memberName: 'meme',
|
||||||
|
description: 'Responds with cute random anime art.',
|
||||||
|
clientPermissions: ['EMBED_LINKS'],
|
||||||
|
postType: 'image',
|
||||||
|
getIcon: true,
|
||||||
|
subreddit: 'awwnime'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
generateText(post, subreddit, icon) {
|
||||||
|
return new MessageEmbed()
|
||||||
|
.setColor(0xFF4500)
|
||||||
|
.setAuthor(`r/${subreddit}`, icon, `https://www.reddit.com/r/${subreddit}/`)
|
||||||
|
.setTitle(post.title)
|
||||||
|
.setImage(post.post_hint === 'image' ? post.url : null)
|
||||||
|
.setURL(`https://www.reddit.com${post.permalink}`)
|
||||||
|
.setTimestamp(post.created_utc * 1000)
|
||||||
|
.setFooter(`⬆ ${formatNumber(post.ups)}`);
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -11,7 +11,7 @@ module.exports = class HentaiCommand extends SubredditCommand {
|
|||||||
memberName: 'hentai',
|
memberName: 'hentai',
|
||||||
description: 'Responds with a random hentai image.',
|
description: 'Responds with a random hentai image.',
|
||||||
details: `**Subreddits:** ${subreddits.join(', ')}`,
|
details: `**Subreddits:** ${subreddits.join(', ')}`,
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['EMBED_LINKS'],
|
||||||
nsfw: true,
|
nsfw: true,
|
||||||
postType: 'image',
|
postType: 'image',
|
||||||
getIcon: true,
|
getIcon: true,
|
||||||
@@ -19,7 +19,7 @@ module.exports = class HentaiCommand extends SubredditCommand {
|
|||||||
{
|
{
|
||||||
name: 'Overtime2005',
|
name: 'Overtime2005',
|
||||||
url: 'https://github.com/Overtime2005',
|
url: 'https://github.com/Overtime2005',
|
||||||
reason: 'Subreddit List'
|
reason: 'Original Subreddit List'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
args: [
|
args: [
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = class MemeCommand extends SubredditCommand {
|
|||||||
memberName: 'meme',
|
memberName: 'meme',
|
||||||
description: 'Responds with a random meme.',
|
description: 'Responds with a random meme.',
|
||||||
details: `**Subreddits:** ${subreddits.join(', ')}`,
|
details: `**Subreddits:** ${subreddits.join(', ')}`,
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['EMBED_LINKS'],
|
||||||
postType: 'image',
|
postType: 'image',
|
||||||
getIcon: true,
|
getIcon: true,
|
||||||
args: [
|
args: [
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ module.exports = class PornCommand extends SubredditCommand {
|
|||||||
memberName: 'porn',
|
memberName: 'porn',
|
||||||
description: 'Responds with a random porn image.',
|
description: 'Responds with a random porn image.',
|
||||||
details: `**Subreddits:** ${subreddits.join(', ')}`,
|
details: `**Subreddits:** ${subreddits.join(', ')}`,
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['EMBED_LINKS'],
|
||||||
nsfw: true,
|
nsfw: true,
|
||||||
postType: 'image',
|
postType: 'image',
|
||||||
getIcon: true,
|
getIcon: true,
|
||||||
@@ -20,7 +20,7 @@ module.exports = class PornCommand extends SubredditCommand {
|
|||||||
{
|
{
|
||||||
name: 'Overtime2005',
|
name: 'Overtime2005',
|
||||||
url: 'https://github.com/Overtime2005',
|
url: 'https://github.com/Overtime2005',
|
||||||
reason: 'Subreddit List'
|
reason: 'Original Subreddit List'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
args: [
|
args: [
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "116.3.1",
|
"version": "116.4.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user