Closed automattf closed 6 years ago
I'm going to have a look at this asap because this is a bug I think. lua is not used very often at all, so it's possible it hasn't been working for a while. Sorry for the inconvenience and thank you for your report.
Happy to say lua is working again :)
You'll also be able to see the errors in the code in the error log correctly.
Thank you for fixing it so quick :)
When I tried to make a bot in Lua, I kept getting a compilation error. I then realized that it said I needed to put
#!/usr/bin/env lua
at the top of the .lua file. Then it compiled, but received no output from the bot. I thought I might have been doing something wrong until I tried writing absolute gibberish in the file. It compiled just fine, and received no output from the bot. I even tried putting gibberish before the#!/usr/bin/env lua
, and it compiled and received no output from the bot. However, if I remove or alter the#!/usr/bin/env lua
in any way, it will fail to compile. I spent a few hours trying to figure this out, and even tried in Python, and typed gibberish, and I got an error, showing it will actually run the Python code, but I don't think Lua code will run at all, unless I'm missing something here.