Files
Owlbot/owlbot/builtin_modules/custom_commands/templates/list.html
T
LogalDeveloper 3413b1dfe4
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
Refactored custom commands module into layered architecture with typed domain objects and comprehensive tests.
2026-04-12 14:21:33 -04:00

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 %}