There was no IRC library for OpenComputers, so I've made one. Here's a demo bot that uses it:
local com = require("component")
local event = require("event")
local thread = require("thread")
local gpu = com.gpu
local irc = require("irc")
local events = irc.events
local env = setmetatable({
irc = irc,
events = events,
}, {__index = _G})
local client = irc.builder()
:connection {
host = "irc.esper.net:6667",
throttling = {
maxDelay = 2,
maxThroughput = 5,
},
}
:auth {
nickname = "oc-finger-irc",
username = "fingercomp",
realname = "OpenComput