mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 15:19:14 +02:00
Fix
This commit is contained in:
+4
-1
@@ -110,7 +110,10 @@ client.on('guildDelete', async guild => {
|
||||
dBotsOrg(count, client.user.id);
|
||||
});
|
||||
|
||||
client.setTimeout(() => process.exit(0), 7.2e+6);
|
||||
client.setTimeout(() => {
|
||||
console.log(`[RESTART] Shard ${client.shard.id} Restarted.`);
|
||||
process.exit(0);
|
||||
}, 7.2e+6);
|
||||
|
||||
client.login(TOKEN);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ module.exports = class QuizCommand extends Command {
|
||||
aliases: ['jeopardy'],
|
||||
group: 'games',
|
||||
memberName: 'quiz',
|
||||
description: 'Answer a true/false quiz question.',
|
||||
description: 'Answer a quiz question.',
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
args: [
|
||||
{
|
||||
@@ -43,7 +43,7 @@ module.exports = class QuizCommand extends Command {
|
||||
.setTitle('You have 15 seconds to answer this question:')
|
||||
.setDescription(stripIndents`
|
||||
**${decodeURIComponent(body.results[0].category)}**
|
||||
True or False: ${decodeURIComponent(body.results[0].question)}
|
||||
${type === 'boolean' ? 'True or False: ' : ''}${decodeURIComponent(body.results[0].question)}
|
||||
`);
|
||||
await msg.embed(embed);
|
||||
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
|
||||
|
||||
Reference in New Issue
Block a user