fix: nicks count check and option rename
This commit is contained in:
1 parent
22c05d18db
commit
c4660683b9
2 files changed
+8
-2
No files matched your search
@@ -36,7 +36,7 @@ When running, you can write a chat message to the terminal to send it by all bot
|
||||
`-t` Set proxy type - SOCKS4 or SOCKS5
|
||||
`-l` Set proxy list file
|
||||
`-g` Try to simulate gravity by falling down
|
||||
`-nicks` Set nicknames file
|
||||
`--nicks` Set nicknames file
|
||||
|
||||
## ⚠ DISCLAIMER
|
||||
**This app is made for educational and testing purposes only.
|
||||
|
||||
@@ -63,7 +63,7 @@ public class Main {
|
||||
options.addOption("l", "proxy-list", true, "Path or URL to proxy list file with proxy:port on every line");
|
||||
options.addOption("t", "proxy-type", true, "Proxy type: SOCKS4 or SOCKS5");
|
||||
|
||||
options.addOption("nicks", true, "Path to nicks file with nick on every line");
|
||||
options.addOption(null, "nicks", true, "Path to nicks file with nick on every line");
|
||||
|
||||
options.addOption("g", "gravity", false, "Try to simulate gravity by falling down");
|
||||
|
||||
@@ -198,6 +198,12 @@ public class Main {
|
||||
if (cmd.hasOption("nicks")) {
|
||||
Log.info("Loading nicknames from specified file");
|
||||
int nicksCount = nickGen.loadFromFile(cmd.getOptionValue("nicks"));
|
||||
|
||||
if (nicksCount == 0) {
|
||||
Log.error("No valid nicknames loaded");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
if (nicksCount < botCount) {
|
||||
Log.warn("Nickname count is lower than bot count!");
|
||||
Thread.sleep(3000);
|
||||
|
||||
Reference in new issue
Block a user