We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a command got renamed by @koishijs/plugin-commands, the template would stop working for that command.
@koishijs/plugin-commands
import { App } from 'koishi'; import ConsolePlugin from '@koishijs/plugin-console'; import SandboxPlugin from '@koishijs/plugin-sandbox'; import * as CommandPlugin from '@koishijs/plugin-commands'; const app = new App({ port: 14514, host: 'localhost', prefix: '.', locale: 'en', }); app.plugin(SandboxPlugin); app.plugin(ConsolePlugin, { open: false, }); app.i18n.define('zh', 'commands.test.messages.msg', '中文'); app.i18n.define('en', 'commands.test.messages.msg', 'English'); app.command('test').action((argv) => argv.session.text('.msg')); app.command('test1').action((argv) => argv.session.text('.msg')); app.plugin(CommandPlugin, { test1: { name: 'test2' }, }); app.start();
Then test would work while test1 wouldn't.
test
test1
Its template should work as usual.
No response
The text was updated successfully, but these errors were encountered:
2c5d54b
No branches or pull requests
Describe the bug
When a command got renamed by
@koishijs/plugin-commands
, the template would stop working for that command.Steps to reproduce
Then
test
would work whiletest1
wouldn't.Expected behavior
Its template should work as usual.
Screenshots
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: