Added reddit, catch any errors in native functions
This commit is contained in:
parent
6cecd4b9d6
commit
b7fe04c82b
41 changed files with 1630 additions and 1386 deletions
19
commands/image-editing/reddit.js
Normal file
19
commands/image-editing/reddit.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
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}"];
|
||||
|
||||
static noText = "you need to provide some text to add a Reddit watermark!";
|
||||
static command = "reddit";
|
||||
}
|
||||
|
||||
module.exports = RedditCommand;
|
Loading…
Add table
Add a link
Reference in a new issue