Where is Everybody Command

This commit is contained in:
Dragon Fire
2020-12-03 14:26:12 -05:00
parent 198f2d4974
commit 33c39b5b96
7 changed files with 50 additions and 3 deletions
+4 -1
View File
@@ -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/)
Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

+2 -1
View File
@@ -12,5 +12,6 @@
"CONNECT",
"SPEAK",
"USE_VAD",
"CHANGE_NICKNAME"
"CHANGE_NICKNAME",
"MENTION_EVERYONE"
]
+43
View File
@@ -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')]
});
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "123.2.4",
"version": "123.3.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {