docs: add features and links

This commit is contained in:
Shigma 2022-11-25 01:10:21 +08:00
parent b3d50c4f2e
commit 4b7f0b19fb
5 changed files with 40 additions and 9 deletions

View File

@ -12,6 +12,27 @@ export default defineConfig({
],
themeConfig: {
nav: [{
text: '更多',
items: [{
text: '关于我们',
items: [
{ text: 'Koishi 官网', link: 'https://koishi.chat' },
{ text: 'NovelAI.dev', link: 'https://novelai.dev' },
{ text: '支持作者', link: 'https://afdian.net/a/shigma' },
]
}, {
text: '友情链接',
items: [
{ text: '法术解析', link: 'https://spell.novelai.dev' },
{ text: '标签超市', link: 'https://tags.novelai.dev' },
{ text: '绘世 Wiki', link: 'https://wiki.novelai.dev' },
{ text: 'AiDraw', link: 'https://guide.novelai.dev' },
{ text: 'MutsukiBot', link: 'https://nb.novelai.dev' },
],
}],
}],
sidebar: [{
text: '指南',
items: [

View File

@ -6,6 +6,7 @@
- 更改模型、采样器、图片尺寸
- 高级请求语法
- 自定义违禁词表
- 中文关键词自动翻译
- 发送一段时间后自动撤回
- 连接到私服 · [NAIFU](./deploy/naifu.md) · [SD-WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
- img2img · 图片增强
@ -17,7 +18,7 @@
- 上下文管理 (限制在哪些群聊中哪些用户可以访问)
- 多语言支持 (为使用不同语言的用户提供对应的回复)
**所以所以快去给 [Koishi](https://github.com/koishijs/koishi) 点个 star 吧!**
**所以快去给 [Koishi](https://github.com/koishijs/koishi) 点个 star 吧!**
## 效果展示

View File

@ -1,7 +1,7 @@
{
"name": "koishi-plugin-novelai",
"description": "Generate images by NovelAI",
"version": "1.14.2",
"version": "1.14.7",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
@ -58,7 +58,7 @@
],
"peerDependencies": {
"@koishijs/translator": "^1.0.0",
"koishi": "^4.10.2"
"koishi": "^4.10.3"
},
"peerDependenciesMeta": {
"@koishijs/translator": {
@ -66,15 +66,15 @@
}
},
"devDependencies": {
"@koishijs/plugin-help": "^1.2.5",
"@koishijs/plugin-help": "^1.2.6",
"@koishijs/translator": "^1.0.0",
"@koishijs/vitepress": "^1.3.5",
"@koishijs/vitepress": "^1.4.1",
"@types/libsodium-wrappers": "^0.7.10",
"@types/node": "^17.0.45",
"atsc": "^1.1.2",
"koishi": "^4.10.2",
"koishi": "^4.10.3",
"sass": "^1.55.0",
"typescript": "^4.8.4",
"typescript": "^4.9.3",
"vitepress": "1.0.0-alpha.26"
},
"dependencies": {

View File

@ -9,6 +9,7 @@
- 更改模型、采样器、图片尺寸
- 高级请求语法
- 自定义违禁词表
- 中文关键词自动翻译
- 发送一段时间后自动撤回
- 连接到私服 · [NAIFU](https://bot.novelai.dev/deploy/naifu.html) · [SD-WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
- img2img · 图片增强
@ -36,8 +37,15 @@
## License
Released under the [MIT](./LICENSE) license.
使用 [MIT](./LICENSE) 许可证发布。
Copyright © 2022-present, Shigma & Ninzore
```
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fkoishijs%2Fnovelai-bot.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fkoishijs%2Fnovelai-bot?ref=badge_large)

View File

@ -278,6 +278,7 @@ export function parseInput(input: string, config: Config, forbidden: Forbidden[]
// remove forbidden words
const positive = input.split(/,\s*/g).filter((word) => {
// eslint-disable-next-line no-control-regex
word = word.replace(/[\x00-\x7f]/g, s => s.replace(/[^0-9a-zA-Z]/, ' ')).replace(/\s+/, ' ').trim()
if (!word) return false
for (const { pattern, strict } of forbidden) {