Awwnime Command, Reddit command fixes and new subs

This commit is contained in:
Dragon Fire
2020-06-07 20:58:50 -04:00
parent bd7d4177df
commit e166456676
7 changed files with 49 additions and 10 deletions
+5 -3
View File
@@ -224,7 +224,7 @@ in the appropriate channel's topic to use it.
## Commands
Total: 458
Total: 459
### Utility:
@@ -320,6 +320,7 @@ Total: 458
### Random Image:
* **awwnime:** Responds with cute random anime art.
* **bird:** Responds with a random image of a bird.
* **bunny:** Responds with a random image of a bunny.
* **cat:** Responds with a random cat image.
@@ -1226,9 +1227,9 @@ here.
- [Overtime2005](https://github.com/Overtime2005)
* alert (Concept)
* dislike (Concept)
* hentai (Subreddit List)
* hentai (Original Subreddit List)
* like (Concept)
* porn (Subreddit List)
* porn (Original Subreddit List)
* simp (Concept)
- [PAC-MAN Party](http://pacman.com/en/pac-man-games/pac-man-party)
* balloon-pop (Concept)
@@ -1285,6 +1286,7 @@ here.
- [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))
- [Reddit](https://www.reddit.com/)
* awwnime ([API](https://www.reddit.com/dev/api/))
* hentai ([API](https://www.reddit.com/dev/api/))
* meme ([API](https://www.reddit.com/dev/api/))
* porn ([API](https://www.reddit.com/dev/api/))
+8 -1
View File
@@ -19,5 +19,12 @@
"nsfw_plowcam",
"legalteens",
"pornstarlethq",
"biggerthanyouthought"
"biggerthanyouthought",
"onoff",
"shorthairchicks",
"petitegonewild",
"plastt",
"bustypetite",
"cumsluts",
"amateur"
]
+30
View File
@@ -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)}`);
}
};
+2 -2
View File
@@ -11,7 +11,7 @@ module.exports = class HentaiCommand extends SubredditCommand {
memberName: 'hentai',
description: 'Responds with a random hentai image.',
details: `**Subreddits:** ${subreddits.join(', ')}`,
clientPermissions: ['ATTACH_FILES'],
clientPermissions: ['EMBED_LINKS'],
nsfw: true,
postType: 'image',
getIcon: true,
@@ -19,7 +19,7 @@ module.exports = class HentaiCommand extends SubredditCommand {
{
name: 'Overtime2005',
url: 'https://github.com/Overtime2005',
reason: 'Subreddit List'
reason: 'Original Subreddit List'
}
],
args: [
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = class MemeCommand extends SubredditCommand {
memberName: 'meme',
description: 'Responds with a random meme.',
details: `**Subreddits:** ${subreddits.join(', ')}`,
clientPermissions: ['ATTACH_FILES'],
clientPermissions: ['EMBED_LINKS'],
postType: 'image',
getIcon: true,
args: [
+2 -2
View File
@@ -12,7 +12,7 @@ module.exports = class PornCommand extends SubredditCommand {
memberName: 'porn',
description: 'Responds with a random porn image.',
details: `**Subreddits:** ${subreddits.join(', ')}`,
clientPermissions: ['ATTACH_FILES'],
clientPermissions: ['EMBED_LINKS'],
nsfw: true,
postType: 'image',
getIcon: true,
@@ -20,7 +20,7 @@ module.exports = class PornCommand extends SubredditCommand {
{
name: 'Overtime2005',
url: 'https://github.com/Overtime2005',
reason: 'Subreddit List'
reason: 'Original Subreddit List'
}
],
args: [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.3.1",
"version": "116.4.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {