Sat, 20 Nov 2010 18:51:56 +0100
plugins.bookmarks: New plugin that makes the bot autojoin bookmarked rooms.
function riddim.plugins.ping(bot) bot.stream:add_plugin("ping"); bot:hook("commands/ping", function (command) local jid = command.param; if jid then bot.stream:ping(jid, function (time, jid, error) if time then command:reply(string.format("Pong from %s in %0.3f seconds", jid, time)); else command:reply("Ping failed ("..(error.condition or "unknown reason")..")"..(error.text and (": "..error.text) or "")); end end); return true; end return "pong"; end); end