{% extends "base.html" %}
{% block title %}{% if is_new %}new script{% else %}{{ script_name }}{% endif %} - bot.irc.now{% endblock %}
{% block content %}
{% if is_new %}new script{% else %}edit: {{ script_name }}{% endif %}
api reference
irc.send(channel, text) -- send a message
irc.join(channel) -- join a channel
irc.part(channel) -- leave a channel
irc.nick(new_nick) -- change nick
kv.get(key) -- get a stored value
kv.set(key, value) -- store a value
kv.delete(key) -- delete a value
kv.list() -- list all key-value pairs
log.info(msg) -- log info message
log.warn(msg) -- log warning
log.error(msg) -- log error
http.get(url) -- HTTP GET (10 req/min limit)
-- event handlers:
function on_message(nick, channel, text) end
function on_join(nick, channel) end
function on_part(nick, channel, reason) end
function on_kick(nick, channel, target, reason) end
function on_nick(old_nick, new_nick) end
function on_notice(nick, target, text) end
{% endblock %}