ScriptAgentStandalone
A strong kotlin script framework with hot reload
Install / Use
/learn @way-zer/ScriptAgentStandaloneREADME
[!WARNING] 这个仓库已经弃用,独立运行功能已合并到Mindustry仓库
Simple Usage with ScriptAgent4MindustryExt loader
- 下载ScriptAgent4MindustryExt的loader(jar)
- 移除coreMindustry, wayzer, main等Mindustry相关模块
- 从ScriptAgentRegistry下载coreMindustry, ktor模块 *. TIP: 本仓库的脚本依然可供参考
ScriptAgent 独立运行版
ScriptAgent for Standalone
一套强大的Kotlin Script框架基于kts定义的DSL
A strong kotlin script framework by kts(for english README see me)
本仓库包含加载器及大量功能性脚本(可使用或做例子)
This repository contains the loader and lots of strong scripts(use or for example)
特性
- 强大,基于kotlin,可以访问所有Java接口(所有插件能干的,脚本都能干)
- 快速,脚本加载完成后,转换为jvm字节码,和java插件没有性能差距
- 灵活,模块与脚本都有完整的生命周期,随时可进行热加载和热重载
- 快速,一大堆开发常用的辅助函数,无需编译,即可快速部署到服务器
- 智能,开发时,拥有IDEA(或AndroidStudio)的智能补全
- 可定制,插件除核心部分外,均使用脚本实现,可根据自己需要进行修改,另外,模块定义脚本也可以为脚本扩充DSL
快速开始
建议下载有tag标注版本号的版本
版本号命名规则: 1.a.b (a代表加载器版本,相同版本号加载器jar可通用)
- 从Action BuildPlugin中下载jar
- 从Action CheckScript中下载脚本包,解压到scripts目录
- 使用
java -jar [刚刚下载的jar].jar运行即可
具体功能
本仓库共含4个模块coreLib,core,ktor,mirai
- coreLib为该框架的标准库
- core为针对standalone的具体实现
- main模块可用来存放简单脚本
- ktor为kotlin的微服务框架ktor的脚本封装
- mirai为qq机器人库mirai的脚本封装
本仓库Wiki正在建设中,请参考查阅姊妹仓库Wiki
版权
- 插件本体:未经许可禁止转载和用作其他用途
- 脚本:归属脚本制作者,本仓库脚本转载需注明本页面链接
- 脚本默认允许私人修改并使用,不允许修改原作者版权信息,公开请folk或引用该仓库(脚本作者声明优先)
- mirai模块及依赖该模块的所有代码,遵循AGPLv3协议
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
