diff --git a/templates/bot_create.html b/templates/bot_create.html index b96c959..47a33cc 100644 --- a/templates/bot_create.html +++ b/templates/bot_create.html @@ -9,17 +9,25 @@

Create bot

-

Step {{ session['step'] }}

+

Step {{ session['step'] }}

+ {% if session['step'] == 1 %}
+ + {% elif session['step'] == 2 %} +

Detected instance type: {{ session['instance_type'] }}

+

{{ session['instance'] }} is a {{ session['instance_type'] }} instance. {% if session['instance_type'] == Pleroma %}Unfortunately, bots on Pleroma instances cannot listen for replies yet. This means that your bot will have its reply functionality disabled.{% else %}{{ session['instance_type'] }} instances are fully supported, and your bot will have all functionality available.{% endif %}

+ + {% endif %} +
- -
+ +
diff --git a/webui.py b/webui.py index 4cb5b46..b0c8017 100644 --- a/webui.py +++ b/webui.py @@ -33,5 +33,7 @@ def bot_edit(id): @app.route("/bot/create/") def bot_create(): - session['step'] = 1 + session['step'] = 2 + session['instance'] = "botsin.space" + session['instance_type'] = "Mastodon" return render_template("bot_create.html")