Botfather
Available on builds with
botfatherfeature enabled.
A subset of https://discord.com/developers/applications/ implemented as chat-bot.
Bundled, but disabled by default, enable it in server configuration (see below).
Access the bot
Easiest way is to add it to your server. Go to Server Settings ->
App Directory -> search for BotFather -> Add App.
Configuration
[botfather]
launch_bundled = true # false to disable the bot
restrict_to = [ "1314312507086602240" ] # list of user ids who is allowed to use the bot (empty = everyone)
Manual start
It is possible to launch bot from terminal or host it on another machine.
To do so:
- make sure
botfatherfeature is enabled on target server; - set
launch_bundled = falseinserver/config.tomlof target server; - run
botfather API_URL WS_URL TOKENwhere:API_URLis url of API server (e.g.http://localhost:9000/api/);WS_URLis url of gateway server (e.g.ws://localhost:9001);TOKENis a token ofbotfatherbot (it would be printed as warning in server log on when server is started);
Notes
botfatherhas a hard coded limit of 7 bots per user;- Current (may 2026) state of bot API can be described as half-baked: bots
have exactly the same permissions as regular users. It is recommended to
make use of
restrict_tocfg field and limit bot owners to a number of people you (server owner) trust;