-
Notifications
You must be signed in to change notification settings - Fork 167
Plugins
Simon Schürrle edited this page Aug 3, 2018
·
6 revisions
Plugins let you extend the bot with new functionality without touching source code of the bot.
To use a plugin, put it in this directory and add its name
to plugins
array in config.js
.
If plugins
is undefined, no plugins are loaded.
However, this behaviour may change, don't rely on it.
If you want no plugins to be loaded, explicitly set it to an empty array.
A plugin is basically "requirable"
(JS file, or directory with index.js
)
which exports a valid Telegraf handler
(usually function or Composer
instance).
Plugins are similar to [micro-bot] bots.
Need help with The Guard? Join our Support Chat.