changeset 1 | cca972635e5e |
parent 0 | 89add07d6fe4 |
child 66 | d9c00a9fe9d5 |
--- a/mcbot/mcbot_shell.lua Sun Apr 11 18:13:18 2010 +0200 +++ b/mcbot/mcbot_shell.lua Sun Apr 11 22:03:12 2010 +0200 @@ -3,10 +3,11 @@ require "mcbot_engine" local function mcbot_mainloop (BotName) + local data = { ["nickname"] = BotName } while true do local l = io.stdin:read'*l' if l == nil then break end - local res, errmsg = process(l, BotName, false) + local res, errmsg = process(l, data, false) if res then print(res) else