diff --git a/README.md b/README.md index 6a3ad0ac..128a36c2 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ don't grant that permission. - **Attach Files** is required to allow commands that send files to work. Too many commands to list use it. - **Read Message History** allows Xiao to use the `first-message` and `prune` commands. * It is also required to allow Xiao to react to messages alongside "Add Reactions". +- **Mention @everyone, @here, and All Roles** allows Xiao to use the `where-is-everybody` command. - **Use External Emojis** allows Xiao to use custom emoji in certain commands. * While the commands benefit from it, it is not required for the commands to work. - **Add Reactions** allows Xiao to use commands that add reactions to messages in certain commands. @@ -257,7 +258,7 @@ in the appropriate channel's topic to use it. ## Commands -Total: 567 +Total: 568 ### Utility: @@ -426,6 +427,7 @@ Total: 567 * **rickroll:** Sends a link to the "Never Gonna Give You Up" music video. * **spam:** Responds with a picture of Spam. * **tableflip:** Flips a table... With animation! +* **where-is-everybody:** Where is everybody? * **wynaut:** Why not? Wynaut? * **yoff:** Posts a picture that truly defines modern art. @@ -1090,6 +1092,7 @@ here. * drakeposting ([Original "Hotline Bling" Music Video](https://youtu.be/uxpDa-c-4Mc)) - [DreamWorks](https://www.dreamworks.com/) * shrek ([Images, Original "Shrek" Movie](https://www.dreamworks.com/movies/shrek)) + * where-is-everybody ([Images, Original "Shrek" Movie](https://www.dreamworks.com/movies/shrek)) - [Dust: An Elysian Tail](https://www.noogy.com/main.html) * fidget (Original Game) - [DynamicPickaxe](http://dynamicpickaxe.com/) diff --git a/assets/images/where-is-everybody/part-1.jpg b/assets/images/where-is-everybody/part-1.jpg new file mode 100644 index 00000000..23872fdc Binary files /dev/null and b/assets/images/where-is-everybody/part-1.jpg differ diff --git a/assets/images/where-is-everybody/part-2.jpg b/assets/images/where-is-everybody/part-2.jpg new file mode 100644 index 00000000..9f0ba51a Binary files /dev/null and b/assets/images/where-is-everybody/part-2.jpg differ diff --git a/assets/images/where-is-everybody/part-3.jpg b/assets/images/where-is-everybody/part-3.jpg new file mode 100644 index 00000000..27afe3e8 Binary files /dev/null and b/assets/images/where-is-everybody/part-3.jpg differ diff --git a/assets/json/permissions.json b/assets/json/permissions.json index 675d12cf..68f6bf88 100644 --- a/assets/json/permissions.json +++ b/assets/json/permissions.json @@ -12,5 +12,6 @@ "CONNECT", "SPEAK", "USE_VAD", - "CHANGE_NICKNAME" + "CHANGE_NICKNAME", + "MENTION_EVERYONE" ] diff --git a/commands/single/where-is-everybody.js b/commands/single/where-is-everybody.js new file mode 100644 index 00000000..9a33d30b --- /dev/null +++ b/commands/single/where-is-everybody.js @@ -0,0 +1,43 @@ +const Command = require('../../structures/Command'); +const path = require('path'); +const { delay } = require('../../util/Util'); + +module.exports = class WhereIsEverybodyCommand extends Command { + constructor(client) { + super(client, { + name: 'where-is-everybody', + aliases: ['where-is-everyone', 'where-everybody', 'where-everyone'], + group: 'single', + memberName: 'where-is-everybody', + description: 'Where is everybody?', + throttling: { + usages: 1, + duration: 30 + }, + clientPermissions: ['ATTACH_FILES', 'MENTION_EVERYONE'], + userPermissions: ['MENTION_EVERYONE'], + credit: [ + { + name: 'DreamWorks', + url: 'https://www.dreamworks.com/', + reasonURL: 'https://www.dreamworks.com/movies/shrek', + reason: 'Images, Original "Shrek" Movie' + } + ] + }); + } + + async run(msg) { + await msg.channel.send('It\'s quiet...', { + files: [path.join(__dirname, '..', '..', 'assets', 'images', 'where-is-everybody', 'part-1.jpg')] + }); + await delay(5000); + await msg.channel.send('Too quiet...', { + files: [path.join(__dirname, '..', '..', 'assets', 'images', 'where-is-everybody', 'part-2.jpg')] + }); + await delay(5000); + return msg.channel.send('Where is @everyone?', { + files: [path.join(__dirname, '..', '..', 'assets', 'images', 'where-is-everybody', 'part-3.jpg')] + }); + } +}; diff --git a/package.json b/package.json index f1498563..48583f8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "123.2.4", + "version": "123.3.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {