Add action file loops and display the GPLv3 notice at console startup
This commit is contained in:
1 parent
12c7332337
commit
b8799a62e7
9 files changed
+305
-47
No files matched your search
@@ -96,7 +96,12 @@ int main(int argc, char **argv)
|
||||
bool eofReported = false;
|
||||
bool actionFailed = false;
|
||||
std::optional<Clock::time_point> drainedSince;
|
||||
console->Out() << "Entered game. " << ConsoleHelp();
|
||||
console->Out() << "Entered game.\n"
|
||||
"bilicraft-bot Copyright (C) 2026 Jeffrey Hsu\n"
|
||||
"This is free software. You may redistribute and modify it under the terms of "
|
||||
"the GNU General Public License, version 3.\n"
|
||||
"This program comes with ABSOLUTELY NO WARRANTY. See LICENSE for details.\n\n"
|
||||
"Type 'help' to list the available commands.\n";
|
||||
const auto printEvents = [&] {
|
||||
for (const auto &event : scheduler.DrainEvents()) console->Out() << event << '\n';
|
||||
console->Out().flush();
|
||||
|
||||
Reference in new issue
Block a user