mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Change **: to :** when bolding lists
This commit is contained in:
@@ -58,8 +58,8 @@ module.exports = class BattleCommand extends Command {
|
||||
if (!opponent.bot || (opponent.bot && userTurn)) {
|
||||
await msg.say(stripIndents`
|
||||
${user}, do you **fight**, **guard**, **special**, or **run**?
|
||||
**${msg.author.username}**: ${userHP}HP
|
||||
**${opponent.username}**: ${oppoHP}HP
|
||||
**${msg.author.username}:** ${userHP}HP
|
||||
**${opponent.username}:** ${oppoHP}HP
|
||||
`);
|
||||
const filter = res =>
|
||||
res.author.id === user.id && ['fight', 'guard', 'special', 'run'].includes(res.content.toLowerCase());
|
||||
|
||||
@@ -57,8 +57,8 @@ module.exports = class EmojiEmojiRevolutionCommand extends Command {
|
||||
else ++oPts;
|
||||
await msg.say(stripIndents`
|
||||
${winner} won this round!
|
||||
**${msg.author.username}**: ${aPts}
|
||||
**${opponent.username}**: ${oPts}
|
||||
**${msg.author.username}:** ${aPts}
|
||||
**${opponent.username}:** ${oPts}
|
||||
`);
|
||||
}
|
||||
this.playing.delete(msg.channel.id);
|
||||
|
||||
@@ -19,7 +19,7 @@ module.exports = class MathQuizCommand extends Command {
|
||||
group: 'games',
|
||||
memberName: 'math-quiz',
|
||||
description: 'See how fast you can answer a math problem in a given time limit.',
|
||||
details: `**Difficulties**: ${difficulties.join(', ')}`,
|
||||
details: `**Difficulties:** ${difficulties.join(', ')}`,
|
||||
args: [
|
||||
{
|
||||
key: 'difficulty',
|
||||
|
||||
@@ -52,7 +52,7 @@ module.exports = class QuizDuelCommand extends Command {
|
||||
await msg.say(stripIndents`
|
||||
**You have 15 seconds to answer this question.**
|
||||
${question.question}
|
||||
${question.answers.map((answer, i) => `**${choices[i]}**. ${answer}`).join('\n')}
|
||||
${question.answers.map((answer, i) => `**${choices[i]}.** ${answer}`).join('\n')}
|
||||
`);
|
||||
const answered = [];
|
||||
const filter = res => {
|
||||
|
||||
@@ -15,8 +15,8 @@ module.exports = class QuizCommand extends Command {
|
||||
memberName: 'quiz',
|
||||
description: 'Answer a quiz question.',
|
||||
details: stripIndents`
|
||||
**Types**: ${types.join(', ')}
|
||||
**Difficulties**: ${difficulties.join(', ')}
|
||||
**Types:** ${types.join(', ')}
|
||||
**Difficulties:** ${difficulties.join(', ')}
|
||||
`,
|
||||
args: [
|
||||
{
|
||||
@@ -57,7 +57,7 @@ module.exports = class QuizCommand extends Command {
|
||||
await msg.reply(stripIndents`
|
||||
**You have 15 seconds to answer this question.**
|
||||
${decodeURIComponent(body.results[0].question)}
|
||||
${shuffled.map((answer, i) => `**${choices[i]}**. ${answer}`).join('\n')}
|
||||
${shuffled.map((answer, i) => `**${choices[i]}.** ${answer}`).join('\n')}
|
||||
`);
|
||||
const filter = res => res.author.id === msg.author.id && choices.includes(res.content.toUpperCase());
|
||||
const msgs = await msg.channel.awaitMessages(filter, {
|
||||
|
||||
@@ -45,8 +45,8 @@ module.exports = class SortingHatQuizCommand extends Command {
|
||||
}
|
||||
const answers = shuffle(question.answers);
|
||||
await msg.say(stripIndents`
|
||||
**${turn}**. ${question.text}
|
||||
${answers.map((answer, i) => `- **${choices[i]}**. ${answer.text}`).join('\n')}
|
||||
**${turn}.** ${question.text}
|
||||
${answers.map((answer, i) => `- **${choices[i]}.** ${answer.text}`).join('\n')}
|
||||
`);
|
||||
const filter = res =>
|
||||
res.author.id === msg.author.id && choices.slice(0, answers.length).includes(res.content.toUpperCase());
|
||||
|
||||
@@ -19,7 +19,7 @@ module.exports = class TypingTestCommand extends Command {
|
||||
group: 'games',
|
||||
memberName: 'typing-test',
|
||||
description: 'See how fast you can type a sentence in a given time limit.',
|
||||
details: `**Difficulties**: ${difficulties.join(', ')}`,
|
||||
details: `**Difficulties:** ${difficulties.join(', ')}`,
|
||||
args: [
|
||||
{
|
||||
key: 'difficulty',
|
||||
|
||||
Reference in New Issue
Block a user