Add clue value to Jeopardy

This commit is contained in:
lilyissillyyy
2026-01-20 14:39:28 -05:00
parent 25b0189131
commit aa75b6cb7f
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
Internet Systems Consortium license
===================================
Copyright (c) 2017-2025, lilyissillyyy
Copyright (c) 2017-2026, lilyissillyyy
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
+1 -1
View File
@@ -1,5 +1,5 @@
[
"©2017-2025 lilyissillyyy",
"©2017-2026 lilyissillyyy",
"Rune Factory: ©2012 Marvelous Inc.",
"Avatar Art: ©2018 airful"
]
+3 -2
View File
@@ -55,8 +55,9 @@ module.exports = class JeopardyCommand extends Command {
connection.play(path.join(__dirname, '..', '..', 'assets', 'sounds', 'jeopardy.mp3'));
await reactIfAble(msg, this.client.user, '🔉');
}
const category = question.category ? question.category.toUpperCase() : '';
await msg.reply(`${category ? `The category is: **${category}**. ` : ''}30 seconds, good luck.`, {
const category = question.category ? `The category is: **${question.category.toUpperCase()}**. ` : '';
const value = question.value ? `For $${question.value}, ` : '';
await msg.reply(`${category}${value}30 seconds, good luck.`, {
files: [{ attachment: clueCard, name: 'clue-card.png' }]
});
const msgs = await msg.channel.awaitMessages({
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "159.3.3",
"version": "159.3.4",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {