Commit 1c1a8404 authored by nanahira's avatar nanahira

fix

parent 5682074d
...@@ -23,7 +23,7 @@ upload_to_minio: ...@@ -23,7 +23,7 @@ upload_to_minio:
tags: tags:
- linux - linux
script: script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://nanahira/koishi-plugin/hisoutensoku-jammer - aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://nanahira/koishi-plugin/myplugin
only: only:
- master - master
......
...@@ -4,7 +4,7 @@ import { MyPlugin } from './plugin'; ...@@ -4,7 +4,7 @@ import { MyPlugin } from './plugin';
import { Config } from './config'; import { Config } from './config';
export { Config } from './config'; export { Config } from './config';
export const name = 'my-plugin'; export const name = 'myplugin';
const plugin = new MyPlugin(); const plugin = new MyPlugin();
export const schema = plugin.schema; export const schema = plugin.schema;
export function apply(ctx: Context, config: Partial<Config>) { export function apply(ctx: Context, config: Partial<Config>) {
......
...@@ -6,7 +6,7 @@ import { schemaFromClass, schemaTransform } from 'koishi-utils-schemagen'; ...@@ -6,7 +6,7 @@ import { schemaFromClass, schemaTransform } from 'koishi-utils-schemagen';
export class MyPlugin { export class MyPlugin {
private config: Config; private config: Config;
private ctx: Context; private ctx: Context;
name = 'my-plugin-main'; name = 'myplugin-main';
schema: Schema<Config> = schemaFromClass(Config); schema: Schema<Config> = schemaFromClass(Config);
apply(ctx: Context, config: Partial<Config>) { apply(ctx: Context, config: Partial<Config>) {
this.ctx = ctx; this.ctx = ctx;
......
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