diff --git a/README.md b/README.md index 922a3c22..f5e07bdc 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ Read image, keep only pixels which has color (eg. FF0000 is red) as the same as #### Project-wide flags - `--help` show help for specific application, for example: `./rerun.sh --help` - `--steam` *(Windows only)* for Bit Heroes on Steam with resolution 800x480 +- `--web` *(default)* for Bit Heroes on Web or Mini-client with resolution 800x520 - `--debug` print debug messages, for developers only - `--img` save screenshot into `./out/images/` directory, only use for debugging purpose - `--mute` do not push notification to Telegram diff --git a/README.release.md b/README.release.md index 8bdc44e6..0d12e143 100644 --- a/README.release.md +++ b/README.release.md @@ -101,6 +101,7 @@ Enjoy it #### Project-wide flags - `--help` show help for specific application, for example: `./rerun.sh --help` - `--steam` *(Windows only)* for Bit Heroes on Steam with resolution 800x480 +- `--web` *(default)* for Bit Heroes on Web or Mini-client with resolution 800x520 - `--mute` do not push notification to Telegram - `--img` save screenshot into `./out/images/` directory, only use for debugging purpose diff --git a/build.sh b/build.sh index 926e8010..08a8e336 100755 --- a/build.sh +++ b/build.sh @@ -11,8 +11,9 @@ rm -f ./BitHeroes.jar cp ./target/BitHeroes-*-jar-with-dependencies.jar ./BitHeroes.jar touch user-config.properties chmod +x ./rerun.sh -chmod +x ./samepix.sh -chmod +x ./keeppix.sh +chmod +x ./fishing.sh +#chmod +x ./samepix.sh +#chmod +x ./keeppix.sh chmod +x ./matrix.sh # Generating mini client diff --git a/release.sh b/release.sh index c996e544..49a086cc 100755 --- a/release.sh +++ b/release.sh @@ -82,4 +82,7 @@ rm -rf $DIR mv ./release $DIR zip -r $FILE $DIR +echo 'clean up' +rm -rf $DIR + echo 'Done '$FILE diff --git a/src/main/java/bh/bot/common/Log.java b/src/main/java/bh/bot/common/Log.java index 16ee8847..19e743a6 100644 --- a/src/main/java/bh/bot/common/Log.java +++ b/src/main/java/bh/bot/common/Log.java @@ -31,9 +31,9 @@ public static void info(String format, Object... objs) { } public static void warn(String format, Object... objs) { - String text = String.format(format, objs); - if (StringUtil.isBlank(text)) + if (StringUtil.isBlank(format)) return; + String text = String.format(format, objs); println(String.format("** WARNING ** %s", text)); }