Skip to content

Instantly share code, notes, and snippets.

Created March 7, 2013 02:05
Show Gist options
  • Save anonymous/5104995 to your computer and use it in GitHub Desktop.
Save anonymous/5104995 to your computer and use it in GitHub Desktop.
require "irc"
sleep = require "socket".sleep
qb = irc.new { nick = "queuebot" }
qb:hook("OnChat", function(user, channel, message)
qb:sendChat(channel, ("%s said %s!"):format(user.nick, message))
end)
qb:connect("irc.coldfront.net")
qb:join("#ai-dev")
while true do
qb:think()
sleep(0.2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment