From dc44653b5b2d44cd284672b0cfeaf356f6bfcced Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 30 Aug 2019 19:08:03 +1000 Subject: [PATCH] added step 3 --- templates/bot_create.html | 4 ++++ webui.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/bot_create.html b/templates/bot_create.html index 4df8ab4..d1b9dad 100644 --- a/templates/bot_create.html +++ b/templates/bot_create.html @@ -23,6 +23,10 @@

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

+ {% elif session['step'] == 3 %} +

You now need to give your bot access to the {{ session['instance'] }} account you have created for it. If you have not yet created an account on {{ session['instance'] }} for your bot to use, please do so now.

+

Sign in to the {{ session['instance'] }} account you want your bot to use, then click next to begin the authorisation process.

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