Initial implementation of IRC LLM bot
Full implementation from spec: ZNC/IRC client with TLS, Ollama LLM backend, per-user SQLite conversation memory, and Flask web admin portal with 7 pages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
39
portal/templates/channels.html
Normal file
39
portal/templates/channels.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Channels — IRC Bot Portal{% endblock %}
|
||||
{% block content %}
|
||||
<h1>Channel Management</h1>
|
||||
|
||||
<div class="section">
|
||||
<h2>Add Channel</h2>
|
||||
<form method="post" action="{{ url_for('channel_add') }}" class="inline-form">
|
||||
<input type="text" name="channel" placeholder="#general" required>
|
||||
<button class="btn btn-primary">Join & Save</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>Joined Channels</h2>
|
||||
{% if cfg.get('channels') %}
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr><th>Channel</th><th>Action</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for ch in cfg['channels'] %}
|
||||
<tr>
|
||||
<td>{{ ch }}</td>
|
||||
<td>
|
||||
<form method="post" action="{{ url_for('channel_remove') }}" style="display:inline">
|
||||
<input type="hidden" name="channel" value="{{ ch }}">
|
||||
<button class="btn btn-danger btn-sm">Part</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p class="muted">No channels configured.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user