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:
29
portal/templates/config.html
Normal file
29
portal/templates/config.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Raw Config — IRC Bot Portal{% endblock %}
|
||||
{% block content %}
|
||||
<h1>Raw Config Editor</h1>
|
||||
|
||||
{% if error %}
|
||||
<div class="alert alert-error">{{ error }}</div>
|
||||
{% endif %}
|
||||
{% if success %}
|
||||
<div class="alert alert-success">{{ success }}</div>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" class="settings-form">
|
||||
<div class="section">
|
||||
<div class="field-row">
|
||||
<label>config.json</label>
|
||||
<textarea name="config_raw" rows="30" class="mono">{{ raw_json }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button type="submit" class="btn btn-primary">Save & Reload Bot</button>
|
||||
<a href="{{ url_for('config_download') }}" class="btn btn-secondary">Download</a>
|
||||
<form method="post" action="{{ url_for('config_upload') }}" enctype="multipart/form-data" style="display:inline">
|
||||
<input type="file" name="config_file" accept=".json">
|
||||
<button type="submit" class="btn btn-secondary">Upload</button>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user