Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-pics
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-pics
Commits
4f32aecc
Commit
4f32aecc
authored
Apr 19, 2022
by
Maiko Sinkyaet Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CONTRIBUTING.md
parent
e263c593
Pipeline
#11778
failed with stage
in 1 minute
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
CONTRIBUTING.md
CONTRIBUTING.md
+8
-10
No files found.
CONTRIBUTING.md
View file @
4f32aecc
#
# 图源
#
贡献代码
图源由其他 Koishi 插件提供。这些插件需要实现
`PicSource`
类,并使用
`ctx.pics.addSource(picSource, ctx)`
进行注入。
### 图源插件
如果你对本插件有任何的意见建议,欢迎开启 issue 进行说明,或者你也可以直接贡献代码。
下面是一些开箱即用的图源。如果你希望你编写的图源插件在此处列出,欢迎提交 Pull Request 或发邮件给
`nanahira@momobako.com`
。
由于 pics 设计为可插拔式的框架,当前仓库仅实现了发送图片的功能,而获取图源的能力则完全由其他插件所实现(下称图源插件)。因此你可以选择向 pics(即本仓库)贡献代码,也可以开发新的图源插件,或向现有的图源插件贡献代码
。
*
[
`koishi-plugin-picsource-localfs`
](
https://github.com/koishijs/koishi-plugin-picsource-localfs
)
本地文件图源。
# 向当前仓库贡献代码
*
[
`koishi-plugin-picsource-lolicon`
](
https://github.com/koishijs/koishi-plugin-picsource-lolicon
)
[
Lolicon
]
(https://api.lolicon.app/ ) 图源
。
本仓库采用了
[
koishi-thirdeye
](
https://koishi.js.org/about/decorator
)
进行开发,思路与理念与传统的 koishi 插件并不相同,在贡献代码之前请先了解双方的异同
。
*
[
`koishi-plugin-picsource-heisi`
](
https://code.mycard.moe/3rdeye/koishi-plugin-picsource-heisi
)
黑丝图源。
# 开发图源插件
*
[
`koishi-plugin-picsource-yande`
](
https://code.mycard.moe/3rdeye/koishi-plugin-picsource-yande
)
[
Yande
]
(https://yande.re/) 以及
[
Konachan
](
https://konachan.com
)
图源
。
图源由其他 Koishi 插件提供。这些插件需要实现
`PicSource`
类,并使用
`ctx.pics.addSource(picSource, ctx)`
进行注入
。
### 类定义
...
...
@@ -196,4 +194,4 @@ export class PicSourceConfig {
target
.
isDefault
=
this
.
isDefault
;
}
}
```
\ No newline at end of file
```
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