mcbot/mcbot_shell.lua
changeset 66 d9c00a9fe9d5
parent 1 cca972635e5e
equal deleted inserted replaced
65:2cefbe9f3ac6 66:d9c00a9fe9d5
     1 #! /usr/bin/env lua
     1 #! /usr/bin/env lua
       
     2 
       
     3 -- This is a small wrapper to call the mcabbot engine from a shell
       
     4 -- (i.e. without mcabber).
     2 
     5 
     3 require "mcbot_engine"
     6 require "mcbot_engine"
     4 
     7 
     5 local function mcbot_mainloop (BotName)
     8 local function mcbot_mainloop (BotName)
     6     local data = { ["nickname"] = BotName }
     9     local data = { ["nickname"] = BotName }