From bd95fcf81123c2d0b989d7d823537fb265ee665b Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Sat, 18 Dec 2021 14:02:14 -0700 Subject: [PATCH] Moved login.lua to root and updated README --- README.md | 13 +++++++++---- login.lua | 7 +++++++ modpol/interactions/login.lua | 7 ------- 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 login.lua delete mode 100644 modpol/interactions/login.lua diff --git a/README.md b/README.md index 353cfb4..e4f918e 100644 --- a/README.md +++ b/README.md @@ -19,15 +19,20 @@ In the game, open the Modular Politics interface with the command `/modpol`. Modular Politics can also be used independently of Minetest as a command-line tool. Currently command-line use of modpol requires a Unix-style system, but it is intended to become more fully platform independent. -The command-line version is in the `modpol` subdirectory. To interact with the interpreter on Unix systems in CLI mode, install lua or luajit and execute the following in this directory: +The command-line version is in the `modpol` subdirectory. To run the program on Unix systems in CLI mode, install lua or luajit and execute the following in this directory: ``` -$ cd modpol/interactions/ -$ lua [or luajit] +$ lua[jit] login.lua +``` + +You can also interact with the interpreter by starting it this way: + +``` +$ lua[jit] > dofile("login.lua") ``` -For a list of global functions and tables, use `modpol.menu()`. +In the interpreter, for a list of global functions and tables, use `modpol.menu()`. ## Storage diff --git a/login.lua b/login.lua new file mode 100644 index 0000000..e2a8971 --- /dev/null +++ b/login.lua @@ -0,0 +1,7 @@ +dofile("modpol/modpol.lua") + +print("Log in as which user?") +local username = io.read() + +print() +modpol.interactions.dashboard(username) diff --git a/modpol/interactions/login.lua b/modpol/interactions/login.lua deleted file mode 100644 index efb0063..0000000 --- a/modpol/interactions/login.lua +++ /dev/null @@ -1,7 +0,0 @@ -dofile("../modpol.lua") - -print("Log in as which user?") -local username = io.read() - -print() -modpol.interactions.dashboard(username) \ No newline at end of file