Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-schedule-send
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-schedule-send
Commits
11eec96a
Commit
11eec96a
authored
May 04, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
dd930745
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
22 deletions
+10
-22
README.md
README.md
+10
-22
No files found.
README.md
View file @
11eec96a
...
...
@@ -21,26 +21,14 @@ export default class TestSendPlugin extends SchedulePlugin(Config) {
### 配置
配置会自动从插件工厂函数中混入。
```
ts
export
class
SchedulePluginConfig
{
@
SchemaProperty
({
description
:
'
cron 时间
'
})
cron
:
string
;
@
SchemaProperty
({
description
:
'
执行的间隔 ms
'
,
step
:
1
})
interval
:
number
;
@
SchemaProperty
({
default
:
false
,
description
:
'
插件启动时是否立即运行一遍。
'
,
})
immediate
:
boolean
;
@
SchemaProperty
({
type
:
SendTarget
,
description
:
'
图片发送目标。
'
,
})
targets
:
SendTarget
[];
}
配置会自动从插件工厂函数中混入,下面为配置。其中
`targets`
见
[
koishi-target-def
](
https://www.npmjs.com/package/koishi-target-def
)
的定义。
```
yaml
cron
:
'
18
13
*
*
*
*'
interval
:
30000
# cron 和 interval 选一个即可
immediate
:
false
# 是否立即发送
targets
:
-
bot
:
'
onebot:1111111111'
channels
:
-
channelId
:
'
222222222'
```
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