{"id":15646406,"url":"https://github.com/cssxsh/novelai-helper","last_synced_at":"2025-04-30T12:22:16.517Z","repository":{"id":62975898,"uuid":"547188839","full_name":"cssxsh/novelai-helper","owner":"cssxsh","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-29T20:51:16.000Z","size":191,"stargazers_count":46,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T07:45:15.275Z","etag":null,"topics":["mirai","mirai-console","naifu","novelai"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cssxsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-07T09:21:13.000Z","updated_at":"2024-09-05T09:30:35.000Z","dependencies_parsed_at":"2024-10-03T12:15:15.970Z","dependency_job_id":"30acd9da-4e93-468d-abc3-8a125f67210e","html_url":"https://github.com/cssxsh/novelai-helper","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fnovelai-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fnovelai-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fnovelai-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fnovelai-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssxsh","download_url":"https://codeload.github.com/cssxsh/novelai-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242650897,"owners_count":20163610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mirai","mirai-console","naifu","novelai"],"created_at":"2024-10-03T12:12:45.297Z","updated_at":"2025-03-09T05:30:41.583Z","avatar_url":"https://github.com/cssxsh.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NovelAi Helper\n\n\u003e 基于 [NovelAi](https://novelai.net/image) 的 AI图片生成插件\n\n[![Release](https://img.shields.io/github/v/release/cssxsh/novelai-helper)](https://github.com/cssxsh/novelai-helper/releases)\n![Downloads](https://img.shields.io/github/downloads/cssxsh/novelai-helper/total)\n[![MiraiForum](https://img.shields.io/badge/post-on%20MiraiForum-yellow)](https://mirai.mamoe.net/topic/1657)\n\n**使用前应该查阅的相关文档或项目**\n\n*   [User Manual](https://github.com/mamoe/mirai/blob/dev/docs/UserManual.md)\n*   [Permission Command](https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand)\n*   [Chat Command](https://github.com/project-mirai/chat-command)\n\n会自动下载 [EhTagTranslation](https://github.com/EhTagTranslation/Database) 翻译词库  \n可以对接 [NaiFu](#NaiFu) 本地搭建  \n或者你可以 利用 [colab](https://colab.research.google.com/drive/1_Ma71L6uGbtt6UQyA3FjqW2lcZ5Bjck-#scrollTo=KZ88G-iWCTs7) 进行在线搭建  \n将搭建得到的 url 例如 `https://express-disco-environmental-friends.trycloudflare.com/` 填入 `config.yml` 的 `naifu_api` 配置项  \n\n**如果你是用 Stable Diffusion web UI 搭建的API** 请移步 https://github.com/cssxsh/stable-diffusion-helper\n\n## 指令\n\n*   `/nai \u003cword\u003e` 生成一张图片 官方API需要登录  \n    例如 `/nai 连裤袜 双马尾` (只有部分词条会自动翻译)  \n    例如 `/nai swimsuit #seed=12346` (设置种子)  \n    例如 `/nai swimsuit #steps=3` (AI迭代次数)  \n    例如 `/nai \"swimsuit, ahegao\"` (如果需要以 `,` 分割词条, 请用 `\"` 包裹)  \n    例如 `/nai 连裤袜 [图片]` (以图生图, `[图片]` 是指指令消息中包含有图片)\n    可用的配置项有  \n    `seed` 种子  \n    `steps` 迭代次数  \n    `width` 宽度  \n    `height` 高度  \n    `scale` 比例  \n    `sampler` 采样器 可选值 `k_euler_ancestral`, `k_euler`, `k_lms`, `plms`, `ddim`  \n    `strength` 以图出图中对原图的更改程度 可选值 [0.00, 0.99]  \n    `noise` 以图出图中的噪声 可选值 [0.00, 0.99]\n\n*   `/nai-fu \u003cword\u003e` 生成一张图片 自建API需要配置 naifu_api  \n    对接 `naifu`, `naifu` 是基于 novelai 官方 web 端的修改版，所以指令用法 和 `nai` 一致\n\n*   `/nai-login \u003cmail\u003e \u003cpassword\u003e` 登录账号  \n    例如 `/nai-login 114514@gmail.com 1919810`\n\n*   `/nai-reload` 重新载入 `config.yml` 配置文件\n\n## 配置\n\n*   `config.yml` 配置文件 包括 `proxy`, `doh`, `ipv6`, `naifu_api` 等配置\n    *   `proxy` 代理\n    *   `doh` DNS\n    *   `ipv6` 是否使用ipv6\n    *   `naifu_api` 自建 naifu 地址\n    *   `command_interval` 命令间隔延迟时间 单位毫秒\n\n*   `ban.txt` 屏蔽的词条，可热编辑，保存后一段时间会自动启用\n\n## NaiFu\n\n`naifu` 是基于 novelai 官方 web 端的修改版  \n相关信息可以看这 \u003chttps://colab.research.google.com/drive/1_Ma71L6uGbtt6UQyA3FjqW2lcZ5Bjck-#scrollTo=KZ88G-iWCTs7\u003e\n\n## TODO\n\n* [ ] 更好的翻译\n* [ ] 更多配置项","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fnovelai-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssxsh%2Fnovelai-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fnovelai-helper/lists"}