{% include 'imports.html' %}

Create bot

{% include 'error.html' %}
{% 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' %}Pleroma's support for the Mastodon API is incomplete, and some functions may not work correctly. Additionally, FediBooks will need to request full read and write access to your account, as Pleroma does not support fine-grained app permissions.{% 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.

{% elif session['step'] == 4 %}

Congratulations!

FediBooks has successfully authenticated with your instance, and your bot is ready to be configured. Click finish to return to the bot management screen.

To get your bot working, you need to add at least one account for it to learn from. You can do so by clicking the button. To configure settings such as posting frequency and content warnings, click the button.

{% else %}

Error

An unknown error has occurred.

{% endif %}
Cancel {% if session['step'] != 1 %} Back {% endif %} {% if session['step'] < 4 %} {% else %} Finish {% endif %}
{% include 'footer.html' %}