discord-community/wiki/Home.md.tpl
Knut Ahlers 644eb07404
Wiki: Add general info how to set up the config
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-07-25 14:33:55 +02:00

32 lines
633 B
Smarty

# Config format
```yaml
---
bot_token: '...'
guild_id: '...'
module_configs:
- type: module-type
attributes:
key: value
...
```
# Modules
{% for module in modules -%}
## Type: `{{ module.type }}`
{{ module.description }}
| Attribute | Req. | Type | Default Value | Description |
| --------- | :--: | ---- | ------------- | ----------- |
{%- for attr in module.attributes %}
| `{{ attr.name }}` | {% if attr.required == 'required' %}{% endif %} | {{ attr.type }} | {% if attr.default != "" %}`{{ attr.default }}`{% endif %} | {{ attr.description }} |
{%- endfor %}
{% endfor %}
<!-- vim: set ft=markdown : -->