mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:26:21 +02:00
Add clue value to Jeopardy
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
Internet Systems Consortium license
|
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
|
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
|
with or without fee is hereby granted, provided that the above copyright notice
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[
|
[
|
||||||
"©2017-2025 lilyissillyyy",
|
"©2017-2026 lilyissillyyy",
|
||||||
"Rune Factory: ©2012 Marvelous Inc.",
|
"Rune Factory: ©2012 Marvelous Inc.",
|
||||||
"Avatar Art: ©2018 airful"
|
"Avatar Art: ©2018 airful"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -55,8 +55,9 @@ module.exports = class JeopardyCommand extends Command {
|
|||||||
connection.play(path.join(__dirname, '..', '..', 'assets', 'sounds', 'jeopardy.mp3'));
|
connection.play(path.join(__dirname, '..', '..', 'assets', 'sounds', 'jeopardy.mp3'));
|
||||||
await reactIfAble(msg, this.client.user, '🔉');
|
await reactIfAble(msg, this.client.user, '🔉');
|
||||||
}
|
}
|
||||||
const category = question.category ? question.category.toUpperCase() : '';
|
const category = question.category ? `The category is: **${question.category.toUpperCase()}**. ` : '';
|
||||||
await msg.reply(`${category ? `The category is: **${category}**. ` : ''}30 seconds, good luck.`, {
|
const value = question.value ? `For $${question.value}, ` : '';
|
||||||
|
await msg.reply(`${category}${value}30 seconds, good luck.`, {
|
||||||
files: [{ attachment: clueCard, name: 'clue-card.png' }]
|
files: [{ attachment: clueCard, name: 'clue-card.png' }]
|
||||||
});
|
});
|
||||||
const msgs = await msg.channel.awaitMessages({
|
const msgs = await msg.channel.awaitMessages({
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "159.3.3",
|
"version": "159.3.4",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user