plugins/pubsub.lua

changeset 87
5fac50efb183
parent 86
2fa4d58349c8
child 88
b7f628541981
equal deleted inserted replaced
86:2fa4d58349c8 87:5fac50efb183
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