xbot/scripts/hello.lua

21 lines
418 B
Lua
Raw Normal View History

2024-02-25 17:09:24 +00:00
NAME = "hello"
VERSION = "v0.5"
AUTHOR = "Aaron Blakely"
DESCRIPTION = "A simple hello world script for xbot"
function hi(nick, host, chan, text)
privmsg(chan, "Hello, " .. nick .. " from hello.lua!!!!!")
2024-02-25 17:09:24 +00:00
end
function load()
-- register_script(NAME, VERSION, AUTHOR, DESCRIPTION)
add_handler(PRIVMSG_CHAN, hi)
2024-02-25 17:09:24 +00:00
end
function unload()
-- unregister_script(NAME)
del_handler(PRIVMSG_CHAN, hi)
2024-02-25 17:09:24 +00:00
end