Commit 5385aa43 authored by nanahira's avatar nanahira

fix plugin name

parent 116f1756
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
import { DrawPluginConfig } from './config'; import { DrawPluginConfig } from './config';
import { import {
DefinePlugin, DefinePlugin,
BasePlugin,
InjectLogger, InjectLogger,
LifecycleEvents, LifecycleEvents,
UseCommand, UseCommand,
...@@ -13,6 +12,7 @@ import { ...@@ -13,6 +12,7 @@ import {
PutUserName, PutUserName,
Renderer, Renderer,
PutRenderer, PutRenderer,
StarterPlugin,
} from 'koishi-thirdeye'; } from 'koishi-thirdeye';
import { Logger, Random } from 'koishi'; import { Logger, Random } from 'koishi';
import path from 'path'; import path from 'path';
...@@ -25,9 +25,9 @@ export * from './config'; ...@@ -25,9 +25,9 @@ export * from './config';
type Decks = Record<string, string[]>; type Decks = Record<string, string[]>;
@DefinePlugin({ name: 'myplugin', schema: DrawPluginConfig }) @DefinePlugin()
export default class DrawPlugin export default class DrawPlugin
extends BasePlugin<DrawPluginConfig> extends StarterPlugin(DrawPluginConfig)
implements LifecycleEvents implements LifecycleEvents
{ {
@InjectLogger() @InjectLogger()
......
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