Created
October 21, 2022 01:34
-
-
Save non/c6edd149e2d72122117d5726096b66f5 to your computer and use it in GitHub Desktop.
patch that turns uxnbot.lua into uxnrepl.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- uxnbot.lua 2022-10-20 21:33:58.783691604 -0400 | |
+++ uxnrepl.lua 2022-10-20 21:33:14.229193549 -0400 | |
@@ -1201,6 +1201,12 @@ | |
end | |
end | |
local chat = require('chat') | |
+print('uxnrepl (ctrl-d to quit)') | |
+io.write('> ') | |
+io.flush() | |
for l in io.stdin:lines() do | |
print(chat(l)) | |
+ io.write('> ') | |
+ io.flush() | |
end | |
+print('bye!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment