Changeset View
Changeset View
Standalone View
Standalone View
src/docs/tech/chatbot.diviner
Show All 38 Lines | |||||
= Handlers = | = Handlers = | ||||
You specify a list of "handlers", which are basically plugins or modules for | You specify a list of "handlers", which are basically plugins or modules for | ||||
the bot. These are the default handlers available: | the bot. These are the default handlers available: | ||||
- @{class:PhabricatorBotObjectNameHandler} This handler looks for users | - @{class:PhabricatorBotObjectNameHandler} This handler looks for users | ||||
mentioning Phabricator objects like "T123" and "D345" in chat, looks them | mentioning Phabricator objects like "T123" and "D345" in chat, looks them | ||||
up, and says their name with a link to the object. Requires conduit. | up, and says their name with a link to the object. Requires conduit. | ||||
- @{class:PhabricatorBotDifferentialNotificationHandler} This handler posts | - @{class:PhabricatorBotFeedNotificationHandler} This handler posts | ||||
notifications about changes to revisions to the channels listed in | notifications about changes to revisions to the channels listed in | ||||
##notification.channels##. | ##notification.channels##. | ||||
- @{class:PhabricatorBotLogHandler} This handler records chatlogs which can | - @{class:PhabricatorBotLogHandler} This handler records chatlogs which can | ||||
be browsed in the Phabricator web interface. | be browsed in the Phabricator web interface. | ||||
- @{class:PhabricatorBotSymbolHandler} This handler posts responses to lookups | |||||
for symbols in Diffusion | |||||
- @{class:PhabricatorBotMacroHandler} This handler looks for users mentioning | |||||
macros, if found will convert image to ASCII and output in chat. Configure | |||||
with ##macro.size## and ##macro.aspect## | |||||
You can also write your own handlers, by extending | You can also write your own handlers, by extending | ||||
@{class:PhabricatorBotHandler}. | @{class:PhabricatorBotHandler}. | ||||
= Conduit = | = Conduit = | ||||
Some handlers (e.g., @{class:PhabricatorBotObjectNameHandler}) need to read data | Some handlers (e.g., @{class:PhabricatorBotObjectNameHandler}) need to read data | ||||
from Phabricator over Conduit, Phabricator's HTTP API. You can use this method | from Phabricator over Conduit, Phabricator's HTTP API. You can use this method | ||||
Show All 25 Lines |