mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-22 19:24:53 +08:00
为启动参数添加了大量 aliases
This commit is contained in:
parent
ecd4902dbe
commit
9bfa35710f
@ -1,6 +1,6 @@
|
|||||||
## Core
|
## Core
|
||||||
|
|
||||||
VERSION = 0.6.5.0
|
VERSION = 0.6.5.1
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ package cc.sukazyo.cono.morny;
|
|||||||
* the final field that will be updated by gradle automatically.
|
* the final field that will be updated by gradle automatically.
|
||||||
*/
|
*/
|
||||||
public class GradleProjectConfigures {
|
public class GradleProjectConfigures {
|
||||||
public static final String VERSION = "0.6.5.0";
|
public static final String VERSION = "0.6.5.1";
|
||||||
public static final long COMPILE_TIMESTAMP = 1652768698515L;
|
public static final long COMPILE_TIMESTAMP = 1652771241057L;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,9 @@ public class ServerMain {
|
|||||||
* 赋值为程序启动的时间,从而造成阻挡程序启动之前的消息事件处理效果。
|
* 赋值为程序启动的时间,从而造成阻挡程序启动之前的消息事件处理效果。
|
||||||
* </li>
|
* </li>
|
||||||
* <li>
|
* <li>
|
||||||
|
* {@code --auto-cmd} (下面两个)选项 {@code --auto-cmd-list} 和 {@code --auto-cmd-remove} 的合并版本
|
||||||
|
* </li>
|
||||||
|
* <li>
|
||||||
* {@code --auto-cmd-list} 使 morny 在启动时自动依据程序本体更新登录 bot 的命令列表
|
* {@code --auto-cmd-list} 使 morny 在启动时自动依据程序本体更新登录 bot 的命令列表
|
||||||
* </li>
|
* </li>
|
||||||
* <li>
|
* <li>
|
||||||
@ -92,11 +95,11 @@ public class ServerMain {
|
|||||||
outdatedBlock = true;
|
outdatedBlock = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case "--no-hello", "-hf" -> {
|
case "--no-hello", "-hf", "--quiet", "-q" -> {
|
||||||
showWelcome = false;
|
showWelcome = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case "--only-hello", "-o" -> {
|
case "--only-hello", "-ho", "-o", "-hi" -> {
|
||||||
welcomeEchoMode = true;
|
welcomeEchoMode = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -104,31 +107,37 @@ public class ServerMain {
|
|||||||
versionEchoMode = true;
|
versionEchoMode = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case "--token" -> {
|
case "--token", "-t" -> {
|
||||||
i++;
|
i++;
|
||||||
key = args[i];
|
key = args[i];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case "--username" -> {
|
case "--username", "-u" -> {
|
||||||
i++;
|
i++;
|
||||||
username = args[i];
|
username = args[i];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case "--master" -> {
|
case "--master", "-mm" -> {
|
||||||
i++;
|
i++;
|
||||||
master = Long.parseLong(args[i]);
|
master = Long.parseLong(args[i]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case "--trusted-chat" -> {
|
case "--trusted-chat", "-trs" -> {
|
||||||
i++;
|
i++;
|
||||||
trustedChat = Long.parseLong(args[i]);
|
trustedChat = Long.parseLong(args[i]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case "--trusted-reader-dinner" -> {
|
//noinspection SpellCheckingInspection
|
||||||
|
case "--trusted-reader-dinner", "-trsd" -> {
|
||||||
i++;
|
i++;
|
||||||
trustedReadersOfDinner.add(Long.parseLong(args[i]));
|
trustedReadersOfDinner.add(Long.parseLong(args[i]));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
case "--auto-cmd", "-cmd", "-c" -> {
|
||||||
|
autoCmdList = true;
|
||||||
|
autoCmdRemove = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
case "--auto-cmd-list", "-ca" -> {
|
case "--auto-cmd-list", "-ca" -> {
|
||||||
autoCmdList = true;
|
autoCmdList = true;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user