Skip to content

Commit

Permalink
fixed tts command typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Leask committed Jul 25, 2024
1 parent e35044e commit 3a7a0ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/bot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3a7a0ac

Please sign in to comment.