plugins/pubsub.lua@00ad6fe8975e
plugins/pubsub.lua
Sun, 17 Jul 2011 02:03:21 +0200
- author
- God of Dice@mf-nb
- date
- Sun, 17 Jul 2011 02:03:21 +0200
- changeset 78
- 00ad6fe8975e
- parent 68
-
f388a8a57d1d
- permissions
- -rw-r--r--
plugins.xkcd: reformat code
function riddim.plugins.pubsub(bot)
bot.stream:add_plugin("pubsub");
bot.pubsub = bot.stream.pubsub;
-- Maybe pubsub/event/ns/element or something?
bot.stream:hook("pubsub/event", function(event)
return bot:event("pubsub/event", event);
end);
end