Remove more commands

This commit is contained in:
Dragon Fire
2024-03-21 21:01:13 -04:00
parent 706ba4c179
commit a72bb293fe
19 changed files with 0 additions and 741 deletions
-30
View File
@@ -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);
}
};
-18
View File
@@ -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;
}
};
-27
View File
@@ -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);
}
};