From 4ac896f6b42b1e26933eca621a7bcab1aca75a1f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 25 Feb 2020 17:22:46 -0500 Subject: [PATCH] Add Potato Command --- .env.example | 1 + README.md | 3 ++- commands/random/potato.js | 19 +++++++++++++++++++ package.json | 2 +- 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 commands/random/potato.js diff --git a/.env.example b/.env.example index c6f22050..447c85f4 100644 --- a/.env.example +++ b/.env.example @@ -66,6 +66,7 @@ KILL_ALBUM_ID= KISS_ALBUM_ID= PAT_ALBUM_ID= POKE_ALBUM_ID= +POTATO_ALBUM_ID= PUNCH_ALBUM_ID= SLAP_ALBUM_ID= SLEEP_ALBUM_ID= diff --git a/README.md b/README.md index d524677d..4961e33a 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Xiao is a Discord bot coded in JavaScript with ## Commands -Total: 360 +Total: 361 ### Utility: @@ -157,6 +157,7 @@ Total: 360 * **offspring:** Determines if your new child will be a boy or a girl. * **opinion:** Determines the opinion on something. * **oracle-turret:** Responds with a random Oracle Turret quote. +* **potato:** Responds with a random potato image. * **pun:** Responds with a random pun. * **quantum-coin:** Flips a coin that lands on some form of nothing. * **quote:** Responds with a random quote. diff --git a/commands/random/potato.js b/commands/random/potato.js new file mode 100644 index 00000000..4b8d240d --- /dev/null +++ b/commands/random/potato.js @@ -0,0 +1,19 @@ +const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); +const { POTATO_ALBUM_ID } = process.env; + +module.exports = class PotatoCommand extends ImgurAlbumCommand { + constructor(client) { + super(client, { + name: 'potato', + group: 'random', + memberName: 'potato', + description: 'Responds with a random potato image.', + clientPermissions: ['ATTACH_FILES'], + albumID: POTATO_ALBUM_ID + }); + } + + generateText() { + return 'I like potatoes.'; + } +}; diff --git a/package.json b/package.json index 9f721e66..af605b42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "110.7.0", + "version": "110.8.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {