Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-act
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
koishi-plugin-act
Commits
74807fb4
Commit
74807fb4
authored
Nov 21, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catchup
parent
0fdfed87
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
135 deletions
+95
-135
package-lock.json
package-lock.json
+87
-127
package.json
package.json
+6
-6
src/plugin.ts
src/plugin.ts
+2
-2
No files found.
package-lock.json
View file @
74807fb4
This diff is collapsed.
Click to expand it.
package.json
View file @
74807fb4
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
"main"
:
"dist/index.js"
,
"main"
:
"dist/index.js"
,
"typings"
:
"dist/index.d.ts"
,
"typings"
:
"dist/index.d.ts"
,
"dependencies"
:
{
"dependencies"
:
{
"
source-map-support
"
:
"
^0.5.19
"
,
"
class-transformer
"
:
"
^0.4.0
"
,
"
delay
"
:
"
^5.0.0
"
,
"
load-json-file
"
:
"
^6.2.0
"
,
"
lodash
"
:
"
^4.17.21
"
,
"
lodash
"
:
"
^4.17.21
"
,
"
moment
"
:
"
^2.29.1
"
,
"
moment
"
:
"
^2.29.1
"
,
"
mustache
"
:
"
^4.2.0
"
,
"
mustache
"
:
"
^4.2.0
"
,
"
prettier
"
:
"
^2.3.2
"
,
"
prettier
"
:
"
^2.3.2
"
,
"
reflect-metadata
"
:
"
^0.1.13
"
,
"
reflect-metadata
"
:
"
^0.1.13
"
,
"
delay
"
:
"
^5.0.0
"
,
"
source-map-support
"
:
"
^0.5.19
"
"
load-json-file
"
:
"
^6.2.0
"
,
"
class-transformer
"
:
"
^0.4.0
"
},
},
"peerDependencies"
:
{
"peerDependencies"
:
{
"
@koishijs/plugin-adapter-onebot
"
:
"
^4.0.0-beta.1
"
,
"
@koishijs/plugin-adapter-onebot
"
:
"
^4.0.0-beta.1
"
,
...
@@ -29,9 +29,9 @@
...
@@ -29,9 +29,9 @@
"
eslint
"
:
"
^7.32.0
"
,
"
eslint
"
:
"
^7.32.0
"
,
"
eslint-config-prettier
"
:
"
^8.3.0
"
,
"
eslint-config-prettier
"
:
"
^8.3.0
"
,
"
eslint-plugin-prettier
"
:
"
^3.4.0
"
,
"
eslint-plugin-prettier
"
:
"
^3.4.0
"
,
"
koishi
"
:
"
^4.0.0-beta.1
"
,
"
koishi
"
:
"
^4.0.0-beta.2
"
,
"
ts-loader
"
:
"
^9.2.5
"
,
"
raw-loader
"
:
"
^4.0.2
"
,
"
raw-loader
"
:
"
^4.0.2
"
,
"
ts-loader
"
:
"
^9.2.5
"
,
"
typescript
"
:
"
^4.3.5
"
,
"
typescript
"
:
"
^4.3.5
"
,
"
webpack
"
:
"
^5.48.0
"
,
"
webpack
"
:
"
^5.48.0
"
,
"
webpack-cli
"
:
"
^4.9.1
"
"
webpack-cli
"
:
"
^4.9.1
"
...
...
src/plugin.ts
View file @
74807fb4
...
@@ -27,7 +27,7 @@ export interface Selection extends BaseSelection {
...
@@ -27,7 +27,7 @@ export interface Selection extends BaseSelection {
}
}
export
interface
Config
{
export
interface
Config
{
adminContext
:
Selection
;
adminContext
?
:
Selection
;
autoChangeName
?:
boolean
;
autoChangeName
?:
boolean
;
dropHelp
?:
boolean
;
dropHelp
?:
boolean
;
playbookPathPrefix
?:
string
;
playbookPathPrefix
?:
string
;
...
@@ -54,7 +54,7 @@ export class MyPlugin {
...
@@ -54,7 +54,7 @@ export class MyPlugin {
});
});
apply
(
ctx
:
Context
,
config
:
Config
)
{
apply
(
ctx
:
Context
,
config
:
Config
)
{
this
.
ctx
=
ctx
;
this
.
ctx
=
ctx
;
this
.
config
=
Schema
.
validate
(
config
,
this
.
schema
)
;
this
.
config
=
config
;
if
(
this
.
config
.
dropHelp
)
{
if
(
this
.
config
.
dropHelp
)
{
ctx
.
command
(
'
help
'
).
dispose
();
ctx
.
command
(
'
help
'
).
dispose
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment