|
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 |