Skip to content

Commit 71eedd8

Browse files
committed
v2.1.0 - Patch 31
~ Bugfix: Al usar cualquier tienda, con la DarkShop desactivada, no se ejecutaban correctamente sus comandos. ~ Cambio del máximo de caracteres del TTS. (500 -> 200)
1 parent daaff14 commit 71eedd8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/utils/DarkShop.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ class DarkShop {
527527
async inflationWork() {
528528
if (!this.doc) await this.#getDoc();
529529
await this.#fetchInfo();
530+
if (this.darkshopDisabled) return;
530531

531532
// revisar el dia de la semana
532533

@@ -553,6 +554,7 @@ class DarkShop {
553554
async getRealInflations() {
554555
if (!this.doc) await this.#getDoc();
555556
await this.#fetchInfo();
557+
if (this.darkshopDisabled || !this.values) return { inflation: 0, oldinflation: 0 }
556558

557559
let day = String(this.now.day());
558560

src/utils/Item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ class Item {
594594
let m = await new Modal(ttsInteraction)
595595
.defUniqueId(`ttsInput`)
596596
.defTitle("TTS")
597-
.addInput({ id: "tts", label: "¿Qué quieres decir?", placeholder: "Exprésate...", style: TextInputStyle.Paragraph, req: true, min: 1, max: 500 })
597+
.addInput({ id: "tts", label: "¿Qué quieres decir?", placeholder: "Exprésate...", style: TextInputStyle.Paragraph, req: true, min: 1, max: 200 })
598598
.show();
599599

600600
let c = await ttsInteraction.awaitModalSubmit({

0 commit comments

Comments
 (0)