Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

Commit 0092e59

Browse files
committed
update demo.js
1 parent e8ee668 commit 0092e59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/demo.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ require("source/NetworkUtils.js");
5757
//当前MiraiBot_HTTP.js为非稳定版本
5858
//必须强制每次启动脚本都从服务器下载
5959
//如因旧版本MiraiBot_HTTP.js产生的问题概不解决!
60-
FileIO.writeString("source/MiraiBot_HTTP.js", NetworkUtils.get("https://cdn.jsdelivr.net/gh/StageGuard/mirai-rhinojs-sdk/source/MiraiBot_HTTP.js", null, true), true);
60+
Log.i("Fetching newest version of MiraiBot_HTTP.js...");
61+
Log.i("Please ensure that your network is avaliable for raw.githubusercontent.com.");
62+
FileIO.writeString("source/MiraiBot_HTTP.js", NetworkUtils.get("https://raw.githubusercontent.com/StageGuard/mirai-rhinojs-sdk/master/source/MiraiBot_HTTP.js", null, true), true);
63+
Log.i("Updated MiraiBot_HTTP.js");
6164
require("source/MiraiBot_HTTP.js");
6265
//以上为加载模块
6366

0 commit comments

Comments
 (0)