Commit 5a28f3f3 authored by nanahira's avatar nanahira

fix

parent 448ecadc
Pipeline #4479 passed with stages
in 58 seconds
webpack.config.js
dist/*
build/*
\ No newline at end of file
import 'source-map-support/register';
import { PluginContext, Plugin, Apply } from 'koishi-dev-utils';
import _ from 'lodash';
interface Config {
prefix: string;
}
@Plugin('my-plugin')
class MyPlugin extends PluginContext<Config> {
@Apply
init() {
this.command('echo <message:text>').action((argv, message) => {
return _.join([this.config.prefix, message], ':');
});
}
}
export = new MyPlugin();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment