This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module("modules/title/title") | |
function parse_message(bot, msg) | |
local i,j,chan,s = string.find(msg, ":.-!.- PRIVMSG (.-) :(.+)") | |
if not (i == nil) then | |
function get_title(url, block_hosts, loop_control) | |
if (loop_control <= 0) then | |
return nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module("modules/define/define") | |
function parse_message(bot, msg) | |
local i,j,sender,chan,q = string.find(msg, ":(.-)!.- PRIVMSG (.-) :" .. tostring(bot.config.triggerprefix) .. "define (.+)") | |
if not (i == nil) then | |
if not (string.sub(chan, 1, 1) == "#") then | |
chan = sender | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local socket = require("socket") | |
function create_bot(nick, channels) | |
local bot = {nick = nick, -- nickname of bot | |
firstresponse = false, -- got any data? | |
connection_ok = false, | |
channels = channels | |
} | |
function bot:connect(serv, port) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local socket = require("socket") | |
function create_bot(nick, channels) | |
local bot = {nick = nick, -- nickname of bot | |
firstresponse = false, -- got any data? | |
connection_ok = false, | |
channels = channels | |
} | |
function bot:connect(serv, port) |
NewerOlder