Commit 16ca7c67 authored by nanahira's avatar nanahira

pluginname

parent a76cfe1d
Pipeline #5265 failed with stages
in 36 seconds
......@@ -3,7 +3,7 @@ import type { Context } from 'koishi-core';
import { Config, MyPlugin } from './plugin';
export { Config } from './plugin';
export const name = 'my-plugin-index';
export const name = 'my-plugin';
export function apply(ctx: Context, config: Config) {
ctx.plugin(new MyPlugin(), config);
}
......@@ -10,7 +10,7 @@ export interface Config {
export class MyPlugin {
config: Config
ctx: Context;
name = 'my plugin';
name = 'my-plugin-main';
apply(ctx: Context, config: Config) {
this.ctx = ctx;
this.config = config;
......
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