All pastes #420248 Raw Edit

init.lua

public lua v1 · immutable
·published 2007-04-02 00:07 UTC
rendered paste body
local files = {	"util.lua",	"command.lua",	"hook.lua",	"config.lua"}table.foreach(files, function(_, f) dofile(f) end)function onMessage(channel, sender, login, hostname, message)	if command.IsCommand(message) then		local res = command.SplitCommand(message)		command.Call(res.com, command.MSG, sender, channel, res.arg)	endendfunction onJoin(channel, sender, login, hostname)endfunction onPrivateMessage(sender, login, hostname, message)endfunction onConnect()	joinChannel("#testobot")end