discord-community/wiki/Home.md.tpl
Knut Ahlers 64b50461b8
Document presence module
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-07-25 14:39:53 +02:00

33 lines
634 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 : -->