Skip to content
Oscar Javier Gentilezza Arenas edited this page Jun 2, 2017 · 4 revisions

This documentation is for the plugin support, is not released. You can see more in the branch feature/#7-plugin-support

Hooks

Session (session.Session)

[void] session:create:after (Session instance)

session:start:before (bridgesConfig)

[sync] session:bridge.start:before (bridgeConfig)

[sync] session:bridge.start:after (bridge instance)

[void] session:start:after (bridges list)

UserBridge (bridge.UserBridge)

[sync] userbridge:create:before (userData, options)

[void] userbridge:create:after (UserBridge instance)

[void] userbridge:get.channel:before (channelName)

[void] userbridge:get.channel:after (IrcChannel instance)

[sync] userbridge:get.by.options:before (userData, options)

[sync] userbridge:get.by.options:after (UserBridge instance)

Bridge (bridge.Bridge)

[sync] bridge:create:before (name, ircChannel, telegramChannel, options)

[void] bridge:create:after (Bridge instance)

[sync] bridge:get.irc.user:before (userData)

[sync] bridge:get.irc.user:after (UserBridge user)

[sync] bridge:get.irc.user.channel:before (userData)

[sync] bridge:get.irc.user.channel:after (IrcChannel userChannel)

[async] bridge:irc.handle.message:before (user, message)

[async] bridge:telegram.handle.message:before (user, message)

TelegramChannel (telegram.TelegramChannel)

[sync] telegramchannel:create:before (channel, connector)

[void] telegramchannel:create:after (TelegramChannel instance)

[async] telegramchannel:handle.message:before (user, message, channelInfo)

[async] telegramchannel:set.data:before (data, sync)

[async] telegramchannel:message.send:before (message, options)

[void] telegramchannel:message.send:after (telegramResponse)

IRCChannel (irc.IRCChannel)

[sync] ircchannel:create:before (channel, IRCConnection connection)

[void] ircchannel:create:after (IRCChannel instance)

[async] ircchannel:handle.message:before (nick, message)

[async] ircchannel:handle.action:before (nick, message)

[async] ircchannel:handle.join:before (nick)

[async] ircchannel:handle.left:before (nick)

[async] ircchannel:handle.topic:before (channel, topic, nick, message)

[async] ircchannel:nick.change:before (old, new)

[async] ircchannel:message.send:before(msg)

[void] ircchannel:message.send:after(messageData)

[void] ircchannel:destroy:after (IRCChannel channel)

IRCConnection (irc.IRCConnection)

[sync] ircconnection:create:before (options)

[void] ircconnection:create:after (IRCConnection instance)

[async] ircconnection:wait.for.connection:after ()

[sync] ircconecction:add.channel:before(channelName)

[sync] ircconecction:add.channel:after(IRCChannel channel)

[async] ircconecction:remove.channel:before(channelName)

Clone this wiki locally