mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Fix shutdown text
This commit is contained in:
@@ -32,12 +32,12 @@ module.exports = class ShutdownCommand extends Command {
|
|||||||
let currentString = '';
|
let currentString = '';
|
||||||
if (games > 0) {
|
if (games > 0) {
|
||||||
currentString += `${games} game${games > 1 ? 's' : ''}`;
|
currentString += `${games} game${games > 1 ? 's' : ''}`;
|
||||||
if (calls < 1) currentString += ' and ';
|
if (calls > 1) currentString += ' and ';
|
||||||
if (games === 1) areIs = 'is';
|
if (games === 1 && calls < 1) areIs = 'is';
|
||||||
}
|
}
|
||||||
if (calls > 0) {
|
if (calls > 0) {
|
||||||
currentString += `${calls} phone call${calls > 1 ? 's' : ''}`;
|
currentString += `${calls} phone call${calls > 1 ? 's' : ''}`;
|
||||||
if (calls === 1 && (games > 0 ? games === 1 : true)) areIs = 'is';
|
if (calls === 1 && games < 1) areIs = 'is';
|
||||||
}
|
}
|
||||||
await msg.reply(`There ${areIs} currently **${currentString}**. Are you sure?`);
|
await msg.reply(`There ${areIs} currently **${currentString}**. Are you sure?`);
|
||||||
const verification = await verify(msg.channel, msg.author);
|
const verification = await verify(msg.channel, msg.author);
|
||||||
|
|||||||
Reference in New Issue
Block a user