Plugin Structure#
đ¤ Help us building this project!
This part of the documentation is still under construction. If you want to help us, you can contribute to the project on GitHub or come on our Discord server.
The plugin must respect this structure:
đ <plugin_name>
ââ đ api
â â # plugin API (Python)
â ââ đ /!\ The API feature is Work In Progress. The structure isn't yet totally defined.
ââ đ bot
â â # plugin actions files (Python)
â ââ đ main.py
â ââ đ ...
ââ đ config
â â # plugin config files (JSON)
â ââ đ options.json
â ââ đ ...
ââ đ data
â â # plugin database files (SQL)
â ââ đ model.sql
â ââ đ ...
ââ đ docs
â â # plugin documentation files (Markdown)
â ââ đ user_documentation.md
â ââ đ ...
ââ đ langs
â â # plugin language files (YML)
â ââ đ en.yml
â ââ đ fr.yml
â ââ đ ...
ââ đ web
â # plugin web UI files (JS)
ââ đ /!\ The web UI feature is Work In Progress. The structure isn't yet totally defined.
Legend#
bot/main.py(the only required file) is the file that is used to lead the plugin as an extension of discord.pyoption.jsonis read by the bot to generate the configuration files (and will be used to generate a basic web UI)models.sqlis automatically called when the bot start to create all tables needed by every pluginuser_documentation.mdwill allow to your plugin to be listed in the auto-generated SUMMARY.md file (and so on gitlab pages if you use this feature)fr.ymlanden.ymlare both pre-implemented languagesđ ...mean that you are free to create every file or folders you want!