CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 15s
CI / Tests (Python 3.13) (push) Successful in 14s
CI / Tests (Python 3.14) (push) Successful in 11s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 6s
32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Custom Commands{% endblock %}
|
|
{% block content %}
|
|
<h1 class="mb-3">Custom Commands</h1>
|
|
{% if commands %}
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Command</th>
|
|
<th>Aliases</th>
|
|
<th>Response</th>
|
|
<th class="text-center">Cooldown</th>
|
|
<th class="text-center">Permissions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for cmd in commands %}
|
|
<tr>
|
|
<td>{{ prefix }}{{ cmd.name }}</td>
|
|
<td>{% if cmd.aliases %}{% for a in cmd.aliases | sort %}{{ prefix }}{{ a }}{% if not loop.last %}, {% endif %}{% endfor %}{% else %}None{% endif %}</td>
|
|
<td>{{ cmd.response }}</td>
|
|
<td class="text-center">{% if cmd.cooldown == 0 %}None{% else %}{{ cmd.cooldown }}s{% endif %}</td>
|
|
<td class="text-center">{% if cmd.requires_moderator %}Moderator{% else %}Everyone{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No custom commands defined.</p>
|
|
{% endif %}
|
|
{% endblock %}
|