From 3a7a0acbe2669bc9a0c5f80f35e17519b78e8bb4 Mon Sep 17 00:00:00 2001 From: Leask Wong Date: Wed, 24 Jul 2024 20:36:19 -0400 Subject: [PATCH] fixed tts command typo --- lib/bot.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bot.mjs b/lib/bot.mjs index f0f4ff7..7bd8aa4 100644 --- a/lib/bot.mjs +++ b/lib/bot.mjs @@ -773,11 +773,11 @@ const subconscious = [{ }, { run: true, priority: -8840, name: 'configuration', func: async (ctx, next) => { switch (ctx.cmd.cmd) { - case 'tts_on': + case 'ttson': ctx.cmd.cmd = 'set'; ctx.cmd.args = '--tts on'; break; - case 'tts_off': + case 'ttsoff': ctx.cmd.cmd = 'set'; ctx.cmd.args = '--tts off'; break; @@ -816,8 +816,8 @@ const subconscious = [{ set: 'Usage: /set --`OPTION` `VALUE` -`SHORT`', reset: 'Reset all configurations.', factory: 'Factory reset all memory areas.', - tts_on: 'Alias of `/set --tts on`', - tts_off: 'Alias of `/set --tts off`', + ttson: 'Alias of `/set --tts on`', + ttsoff: 'Alias of `/set --tts off`', }, args: { chatty: { type: 'string', short: 'c', default: ON,