<img alt="AF_Banner" src="https://raw.githubusercontent.com/SuperMonster002/Hello-Sockpuppet/master/ant-forest-banner_374%C3%97106.png"/>
基于 Auto.js 的蚂蚁森林能量自动收取脚本
Auto.js-based ant forest energy auto-collect script
<a href="https://github.com/SuperMonster003/Ant-Forest/releases/latest"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/SuperMonster003/Ant-Forest"/></a>
<a href="https://github.com/SuperMonster003/Ant-Forest/issues"><img alt="GitHub closed issues" src="https://img.shields.io/github/issues/SuperMonster003/Ant-Forest?color=009688"/></a>
<a href="https://github.com/SuperMonster003/AutoJs6"><img alt="GitHub AutoJs6 repository" src="https://img.shields.io/badge/auto.js->= 6.2.0-67a91b"/></a>
<a href="https://github.com/topics/javascript"><img alt="GitHub top language" src="https://img.shields.io/github/languages/top/SuperMonster003/Ant-Forest?color=eb8031"/></a>
<a href="https://www.codefactor.io/repository/github/SuperMonster003/Ant-Forest"><img alt="CodeFactor Grade" src="https://www.codefactor.io/repository/github/SuperMonster003/Ant-Forest/badge"/></a>
<a href="https://github.com/SuperMonster003/Ant-Forest/commit/d43a0119b214a17062501ea8a938b13bd97d2028"><img alt="Created" src="https://img.shields.io/date/1552924800?color=2e7d32&label=created"/></a>
<a href="https://github.com/SuperMonster003/Ant-Forest/find/master"><img alt="GitHub Code Size" src="https://img.shields.io/github/languages/code-size/SuperMonster003/Ant-Forest?color=795548"/></a>
<a href="https://github.com/SuperMonster003/Ant-Forest/find/master"><img alt="GitHub Code Lines" src="https://img.shields.io/tokei/lines/github/SuperMonster003/Ant-Forest?color=37474F"/></a>
<a href="https://github.com/SuperMonster003/Ant-Forest/blob/master/LICENSE"><img alt="GitHub License" src="https://img.shields.io/github/license/SuperMonster003/Ant-Forest?color=534BAE"/></a>
<a href="https://www.jetbrains.com/?from=Ant-Forest"><img alt="JetBrains supporter" src="https://img.shields.io/badge/supporter-JetBrains-ee4677"/></a>
<a href="https://github.com/SuperMonster003/Ant-Forest/blob/master/assets/docs/TODO.md"><img alt="Todo list" src="https://img.shields.io/badge/todo-56-C63F17"/></a>
| Status | Task | Date | Cost | Progress |
|---|---|---|---|---|
| ✔️ | 推迟任务加入下次关屏选项 | 2021-11-01 18:16:56 | 5 | 1 |
| ✔️ | 能量雨加入近似区域点击检测 | 2021-10-27 14:48:18 | 3 | 1 |
| ✔️ | v2.2.0 发布后检查 documents 相关的链接 | 2021-10-26 23:07:16 | 1 | 1 |
| ✒️ | 扩展模块及插件重构 | 2021-10-26 14:37:07 | ! 8 | 0.39 |
| ✒️ | 排行榜策略加入黑名单检测方案配置 (#529) | 2021-10-31 18:57:17 | ! 5 | 0.00 |
| ✒️ | 事件监测配置 (#533) | 2021-10-26 10:50:40 | ! 6 | 0.00 |
| ✒️ | 自动关闭屏幕配置 (#476) | 2021-10-26 11:15:11 | ! 6 | 0.00 |
| ✒️ | 提取 JSDoc@typedef 到 TS 声明文件 | 2021-10-25 22:25:18 | 10 | 0.94 |
| ✒️ | 保护地巡护工具 | 2021-10-26 10:34:25 | 9 | 0.20 |
| ✒️ | 将 tool functions 转换为 OOP | 2021-10-25 22:24:13 | 10 | 0.18 |
| ✒️ | 分离 appx 模块 (autojs / alipay ...) | 2021-10-25 22:24:13 | 6 | 0.17 |
| ✒️ | 启动器模块化 | 2021-10-26 08:25:42 | 10 | 0.00 |
| ✒️ | 配置工具模块化 | 2021-10-26 08:24:34 | 10 | 0.00 |
全部待办事项可参阅 TODO.md (共计 56 项)
检查设备环境
操作系统: Android 7.0 (API 24) 及以上
下载并安装 Auto.js
AutoJs6 (开源免费)
自 v2.3.0 起将仅支持使用 AutoJs6 运行当前项目
因项目运行依赖于 Rhino 引擎 的部分 新特性 及 AutoJs6 的部分新 API 及内置模块
下载并部署项目 (任意一种方式)
下载项目部署工具 (*.js)
保存 或 另存为 至本地存储AutoJs6 直接运行 (或导入后运行) 脚本文件完成部署AutoJs6 才能看到项目目录*.zip)/内部存储/ /Internal Storage/ /sdcard/ /storage/emulated/0/ 等AutoJs6 默认工作目录./脚本/./Scripts/AutoJs6 软件中设置工作目录项目支持更新版本的自动检查/提示/下载/版本忽略等相关功能
使用 Auto.js 运行项目
运行 ant-forest-launcher.js 启动项目
ant-forest-settings.js 配置项目项目
tools文件夹包含 小工具
查看更多功能
修复 蚂蚁森林页面更新后无法收取自己及好友能量的问题优化 重构部分模块以适配 AutoJs6新增 运行前提示对话框的推迟任务列表增加"息屏时"选项修复 解锁密码为空时无法解锁设备的问题修复 逛一逛方案无法识别能量雨页面判断条件的问题修复 配置工具输入忽略版本内容时可能导致脚本崩溃的问题修复 设备屏幕水平方向启动项目后刷新屏显参数失败的问题 issue #534修复 配置工具定时任务控制面板定时任务及任务类型识别异常的问题管理 项目图片资源文件夹移除打赏二维码并迁移至README.md中管理 项目图片资源文件夹内增加.nomedia防止媒体库中出现无关资源安卓平台 JavaScript 自动化工具Auto.js 声明文件 (d.ts)查看详情 (Click to show details)
To tip online, scan the QR code below
扫描对应二维码可打赏
I believe I could make it better with your support :)
感谢每一份支持和鼓励
$ claude mcp add Ant-Forest \
-- python -m otcore.mcp_server <graph>