mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Remove more commands
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
const SubredditCommand = require('../../structures/commands/Subreddit');
|
||||
const { list } = require('../../util/Util');
|
||||
const subreddits = require('../../assets/json/news');
|
||||
|
||||
module.exports = class NewsCommand extends SubredditCommand {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'news',
|
||||
group: 'random-res',
|
||||
memberName: 'news',
|
||||
description: 'Responds with a random news article.',
|
||||
details: `**Subreddits:** ${subreddits.join(', ')}`,
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
getIcon: true,
|
||||
args: [
|
||||
{
|
||||
key: 'subreddit',
|
||||
prompt: `What subreddit do you want to get news from? Either ${list(subreddits, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: subreddits,
|
||||
parse: subreddit => subreddit.toLowerCase()
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
generateText(post, subreddit, icon) {
|
||||
return this.makeEmbed(post, subreddit, icon);
|
||||
}
|
||||
};
|
||||
@@ -1,18 +0,0 @@
|
||||
const SubredditCommand = require('../../structures/commands/Subreddit');
|
||||
|
||||
module.exports = class ShowerThoughtCommand extends SubredditCommand {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'shower-thought',
|
||||
aliases: ['shower-thoughts', 'shower', 's-thought', 'shower-t'],
|
||||
group: 'random-res',
|
||||
memberName: 'shower-thought',
|
||||
description: 'Responds with a random shower thought, directly from r/Showerthoughts.',
|
||||
subreddit: 'Showerthoughts'
|
||||
});
|
||||
}
|
||||
|
||||
generateText(post) {
|
||||
return post.title;
|
||||
}
|
||||
};
|
||||
@@ -1,27 +0,0 @@
|
||||
const SubredditCommandBase = require('../../structures/commands/Subreddit');
|
||||
|
||||
module.exports = class SubredditCommand extends SubredditCommandBase {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'subreddit',
|
||||
aliases: ['r/', 'sub'],
|
||||
group: 'random-res',
|
||||
memberName: 'subreddit',
|
||||
description: 'Responds with a random post from a subreddit.',
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
getIcon: true,
|
||||
args: [
|
||||
{
|
||||
key: 'subreddit',
|
||||
prompt: 'What subreddit would you like to get a post from?',
|
||||
type: 'string',
|
||||
parse: subreddit => encodeURIComponent(subreddit)
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
generateText(post, subreddit, icon) {
|
||||
return this.makeEmbed(post, subreddit, icon);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user