2021-04-26 14:47:03 +00:00
|
|
|
const ImageCommand = require("../../classes/imageCommand.js");
|
|
|
|
const { random } = require("../../utils/misc.js");
|
|
|
|
const names = ["esmBot", "me_irl", "dankmemes", "hmmm", "gaming", "wholesome", "chonkers", "memes", "funny", "pcmasterrace", "bellybros"];
|
|
|
|
|
|
|
|
class RedditCommand extends ImageCommand {
|
|
|
|
params(args) {
|
|
|
|
return {
|
|
|
|
caption: args.length === 0 ? random(names) : args.join(" ").replaceAll("\n", "").replaceAll(" ", "")
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
static description = "Adds a Reddit watermark to an image";
|
|
|
|
static arguments = ["{text}"];
|
|
|
|
|
2021-05-24 19:31:44 +00:00
|
|
|
static noText = "You need to provide some text to add a Reddit watermark!";
|
2021-04-26 14:47:03 +00:00
|
|
|
static command = "reddit";
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = RedditCommand;
|