plugins/pubsub.lua

changeset 68
f388a8a57d1d
equal deleted inserted replaced
67:12e2c702eddc 68:f388a8a57d1d
1 function riddim.plugins.pubsub(bot)
2 bot.stream:add_plugin("pubsub");
3 bot.pubsub = bot.stream.pubsub;
4
5 -- Maybe pubsub/event/ns/element or something?
6 bot.stream:hook("pubsub/event", function(event)
7 return bot:event("pubsub/event", event);
8 end);
9 end

mercurial