mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add s properly in awaitPlayers
This commit is contained in:
@@ -86,7 +86,7 @@ don't grant that permission.
|
||||
|
||||
## Fun Information
|
||||
- 500+ commands
|
||||
- 27,000+ lines of JavaScript
|
||||
- 28,000+ lines of JavaScript
|
||||
- 61,000+ lines of JSON data
|
||||
- 3 years of development
|
||||
|
||||
@@ -342,6 +342,7 @@ Total: 530
|
||||
|
||||
### Random Image:
|
||||
|
||||
* **dating:** Find the person of your dreams with this dating system!
|
||||
* **ai-artwork:** Responds with randomly generated artwork.
|
||||
* **ai-cat:** Responds with a randomly generated cat.
|
||||
* **ai-fursona:** Responds with a randomly generated fursona.
|
||||
@@ -807,7 +808,6 @@ Total: 530
|
||||
### Other:
|
||||
|
||||
* **cleverbot:** Talk to Cleverbot. (Owner-Only)
|
||||
* **dating:** Find the person of your dreams with this dating system!
|
||||
* **portal-send:** Send a message to a portal channel.
|
||||
* **prune:** Deletes up to 99 messages from the current channel.
|
||||
* **rename-all:** Renames every member of the server. (Owner-Only)
|
||||
@@ -1179,6 +1179,7 @@ here.
|
||||
* blush ([API](https://apidocs.imgur.com/))
|
||||
* bro-hoof ([API](https://apidocs.imgur.com/))
|
||||
* celebrate ([API](https://apidocs.imgur.com/))
|
||||
* dating ([API](https://apidocs.imgur.com/))
|
||||
* eat ([API](https://apidocs.imgur.com/))
|
||||
* explode ([API](https://apidocs.imgur.com/))
|
||||
* fidget ([API](https://apidocs.imgur.com/))
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.11.1",
|
||||
"version": "119.11.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
+1
-1
@@ -182,7 +182,7 @@ module.exports = class Util {
|
||||
|
||||
static async awaitPlayers(msg, max, min = 1) {
|
||||
if (max === 1) return [msg.author.id];
|
||||
const addS = min - 1 > 1 ? 's' : '';
|
||||
const addS = min - 1 === 1 ? '' : 's';
|
||||
await msg.say(
|
||||
`You will need at least ${min - 1} more player${addS} (at max ${max - 1}). To join, type \`join game\`.`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user