forked from FloatTech/ZeroBot-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,766 changed files
with
90,937 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# kokomi | ||
|
||
kokomi是一个ZeroBot-Plugin的扩展插件,提供包括原神角色面板绘制,快速返回图片等升级功能。 | ||
相比与喵喵菜单,本插件不依赖浏览器渲染,可以再树莓派等机器上运行(按理来说是可以的),占用内存较低 | ||
|
||
具体功能可在安装插件后 通过`kokomi菜单`,`/用法kokomi`,`/用法kokomi_wiki`进行查看。 | ||
# 安装与更新 | ||
|
||
请先安装ZeroBot-Plugin,仓库地址[ZeroBot-Plugin](https://github.com/FloatTech/ZeroBot-Plugin) | ||
|
||
在配置成功上述程序源码后,再安装本插件,否则无法生效 | ||
|
||
|
||
推荐使用git进行安装,以方便后续升级。在ZeroBot-Plugin根目录夹打开终端,运行 | ||
|
||
//使用Github | ||
|
||
git clone https://github.com/lianhong2758/kokomi-plugin.git ./plugin/kokomi/ | ||
|
||
//使用Gitte | ||
|
||
git clone https://gitee.com/lianhong2758/kokomi-plugin.git ./plugin/kokomi/ | ||
|
||
//在群文件下载 | ||
|
||
如果是手动下载的zip压缩包,请将解压后的kokomi文件夹放置在ZeroBot-Plugin目录下的plugin文件夹内。 | ||
|
||
通过上述三种方法之一下载,然后在main.go中导入包 | ||
|
||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/kokomi" // kokomi原神面板 | ||
|
||
# 功能说明(部分移植喵喵菜单) | ||
- 原神面板功能: | ||
- kokomi菜单 | ||
- 绑定xxx(uid) | ||
- 删除账号 | ||
- 更新面板 | ||
- 全部面板 | ||
- 雷神面板 | ||
- 队伍伤害[xx xx xx xx] | ||
管理员专属 | ||
- 上传第(1|2)立绘XX | ||
- 删除第(1|2)立绘XX | ||
- 切换api[数字] | ||
|
||
原神wiki功能: | ||
- #材料/培养xxx [角色培养材料查询] | ||
- #特产/位置xxx [特产位置查询] | ||
- #武器/图鉴xxx [武器图鉴查询] | ||
- #收益xxx [角色收益曲线查询] | ||
- #参考xxx [角色参考面板查询] | ||
- #查卡xxx [七圣召唤查卡] | ||
- #攻略xxx [角色攻略查询] | ||
- #原魔xxx [原魔图鉴查询] | ||
- #xxx [角色图鉴查询] | ||
|
||
# 服务依赖 | ||
|
||
#更新面板 依赖于面板查询API,面板服务由 `http://enka.network/`提供 | ||
如果可以的话,也请在Patreon上支持Enka,或提供闲置的原神账户,具体可在Enka官网 Discord联系 | ||
|
||
国内网络如Enka服务访问不稳定,可尝试更换 @MiniGrayGay 大佬提供的中转服务 | ||
方法:发送切换api即可(需要权限),未来可能适配喵喵api | ||
|
||
【链接1】:https://enka.microgg.cn/ | ||
【链接2】:https://enka.minigg.cn/ | ||
# 未来可期 (以后可能适配的功能) | ||
#雷神伤害 | ||
#本地计算 | ||
|
||
免责声明 | ||
|
||
功能仅限交流技术使用,请勿将kokomi用于以盈利为目的的场景 | ||
图片与其他素材均来借用喵喵菜单,在此感谢大佬,如有侵权请联系,会立即删除 | ||
|
||
其他 | ||
|
||
喵喵插件[Miao-Plugin]:感谢喵喵菜单提供模板学习 | ||
Enka: 感谢Enka提供的面板服务 | ||
genshin-atlas:感谢西风驿站提供wiki查询功能 | ||
LittlePaimon:感谢小派蒙提供json数据库 | ||
|
||
# 获得帮助 | ||
欢迎进行提问,如果可能,我将尽快回答你的问题,或者fix该问题 | ||
若有开发建议,欢迎来开发群内进行讨论 | ||
QQ群 | ||
ZeroBot-Plugin官方二群609640932 | ||
kokomi开发/维护/交流678586912 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package kokomi | ||
|
||
import ( | ||
"encoding/json" | ||
"github.com/sirupsen/logrus" | ||
"os" | ||
) | ||
|
||
var Config config | ||
|
||
func init() { | ||
cache, err := os.ReadFile("plugin/kokomi/config.json") | ||
if err != nil { | ||
logrus.Errorln("获取kokomi配置文件错误") | ||
os.Exit(1) | ||
} | ||
err = json.Unmarshal(cache, &Config) | ||
if err != nil { | ||
logrus.Errorln("解析kokomi配置文件错误") | ||
os.Exit(1) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"api_id": 1, | ||
"apis": ["https://enka.microgg.cn/api/uid/%v", "https://enka.minigg.cn/u/%v/__data.json", "https://enka.network/api/uid/%v"], | ||
"postfix": "~", | ||
"edition": " & kokomi v2.4.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"id": 10000035, | ||
"name": "七七", | ||
"abbr": "七七", | ||
"title": "冻冻回魂夜", | ||
"star": 5, | ||
"elem": "cryo", | ||
"allegiance": "不卜庐", | ||
"weapon": "sword", | ||
"birth": "3-3", | ||
"astro": "三清铃座", | ||
"desc": "药庐「不卜庐」的采药姑娘兼学徒,面色苍白如纸的不死之人。话很少,也没有什么表情。", | ||
"cncv": "宴宁", | ||
"jpcv": "田村由加莉", | ||
"costume": false, | ||
"ver": 1, | ||
"baseAttr": { | ||
"hp": 12368, | ||
"atk": 287.01, | ||
"def": 922.27 | ||
}, | ||
"growAttr": { | ||
"key": "heal", | ||
"value": 22.15 | ||
}, | ||
"talentKey": { | ||
"3531": "a", | ||
"3532": "e", | ||
"3539": "q" | ||
}, | ||
"talentId": { | ||
"10351": 3531, | ||
"10352": 3532, | ||
"10353": 3539 | ||
}, | ||
"talentCons": { | ||
"e": 5, | ||
"q": 3 | ||
}, | ||
"materials": { | ||
"gem": "哀叙冰玉", | ||
"boss": "极寒之核", | ||
"specialty": "琉璃袋", | ||
"normal": "禁咒绘卷", | ||
"talent": "「繁荣」的哲学", | ||
"weekly": "北风之尾" | ||
} | ||
} |
Oops, something went wrong.