3 Incheckningar a264e7b68b ... 821c99afc9

Upphovsman SHA1 Meddelande Datum
  deadtom 821c99afc9 Fixed another formatting typo 2 veckor sedan
  deadtom 26ae54bcef Added Kofi/monetization blurb to description, and stressed the importance of backups in the kofi section 2 veckor sedan
  deadtom d25bf66306 Fixed typo, and added Kofi verbiage to OCB info page. 2 veckor sedan
3 ändrade filer med 12 tillägg och 8 borttagningar
  1. 4 1
      README.md
  2. 1 1
      ownchatbot/bot_messages.py
  3. 7 6
      ownchatbot/templates/userpanel.html

+ 4 - 1
README.md

@@ -1,7 +1,7 @@
 # OwnchatBot
 ![smallrobo](https://www.deadtom.me/~deadtom/img/ownchatbotwide.png)
 
-A chatbot for Owncast, enabling viewers to earn points which can be used to redeem stream rewards.
+A chatbot for Owncast, enabling viewers to earn points which can be used to purchase stream rewards, and enabling streamers to use Kofi integration to monetize their stream.
 
 ## Table of Contents
 - [Features](#features)
@@ -144,6 +144,9 @@ You need to create a button on your Owncast page, so your viewers can access the
 5. Configure the remaining fields/options as desired.
 
 ### Kofi Integration
+
+#### Make sure you don't lose your viewers' benefits! It is extremely important that you back up your instance folder daily, if not hourly.
+
 Integration is accomplished via a webhook triggered by Kofi every time a donation is made. Again, this webhook is your external OwnchatBot server address with `/kofiHook` appended.
 
 Paste the webhook address into Kofi -> More -> API -> Webhooks -> Webhook URL.

+ 1 - 1
ownchatbot/bot_messages.py

@@ -137,7 +137,7 @@ def help_message(user_id):
     if kofi_integration:
         message = f'{message}<br><br>\
             Kofi is enabled! <br>\
-            Authenticated with Owncast, and enter your email address into the Stream Rewards Info page to get Kofi perks.'
+            Authenticate with Owncast, and enter your email address into the Stream Rewards Info page to get Kofi perks.'
     if kofi_settings['tips']:
         message = f'{message}<br>\
         You\'ll recieve {kofi_settings["tip_points"]} points for every dollar you tip on Kofi.'

+ 7 - 6
ownchatbot/templates/userpanel.html

@@ -33,16 +33,17 @@
         </ul>
         
         {% if kofi_integration %}
+            <h4>Kofi Integration</h4>
+            You must be authenticated with Owncast to take advantage of Kofi integration.<br>
+            {% if kofi_settings['tips'] %}
+                {% set points_label = 'point' if tip_points == 1 else 'points' %}
+                You are awarded {{ kofi_settings['tip_points'] }} {{ points_label }} for every dollar you tip on Kofi.<br>
+            {% endif %}
             {% for user in users %}
             
-            {% set points_label = 'point' if tip_points == 1 else 'points' %}
-                <h4>Kofi</h4>
-                <div>
+            <div>
                 {% if user['user_authed'] %}
                     <a href="{{ kofi_settings['kofi_url'] }}/tip" target="new"><img src="/static/img/kofi/{{ kofi_settings['kofi_logo'] }}"></a><br>
-                    {% if kofi_settings['tips'] %}
-                        You are awarded {{ kofi_settings['tip_points'] }} {{ points_label }} for every dollar you tip on Kofi.<br>
-                    {% endif %}
                     OwnchatBot recognizes your Kofi account by your email address. In order for OwnchatBot to award your tip points, you must enter the email address associated with your Kofi account here.<br><br>
                     
                     {% with messages = get_flashed_messages(with_categories=true) %}