|
|
@@ -1,7 +1,7 @@
|
|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
- <title>OCB - Stream Points and Rewards</title>
|
|
|
+ <title>OwnchatBot</title>
|
|
|
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
|
</head>
|
|
|
@@ -35,32 +35,45 @@
|
|
|
</ul>
|
|
|
|
|
|
<hr>
|
|
|
- {% if kofi_integration %}
|
|
|
- <h4><a href="{{ kofi_settings['kofi_url'] }}/donate" target="new"><img alt="Kofi Coffee Cup" src="/static/img/kofi_symbol.png"></a> Kofi Integration</h4>
|
|
|
+ <table>
|
|
|
+ {% if kofi_settings['donations'] %}
|
|
|
+ <tr style="border-bottom: none;">
|
|
|
+ <td><h4><a href="{{ kofi_settings['kofi_url'] }}/donate" target="new"><img style="height: 25px; width: auto; padding-right: 8px; !important" alt="Coffee Cup Logo" src="/static/img/kofi_symbol.png"></a> Ko-fi</h4></td>
|
|
|
|
|
|
{% if kofi_settings['donations'] %}
|
|
|
- {% set d_points_label = 'point' if donation_points == 1 else 'points' %}
|
|
|
- You are awarded {{ kofi_settings['donation_points'] }} {{ d_points_label }} for every dollar you donate on Kofi.<br>
|
|
|
+ {% set d_points_label = 'point' if kofi_settings['donation_points'] == 1 else 'points' %}
|
|
|
+ <td>You are awarded {{ kofi_settings['donation_points'] }} {{ d_points_label }} for every dollar donated.<br></td>
|
|
|
{% endif %}
|
|
|
-
|
|
|
+ </tr>
|
|
|
+ <tr style="border-bottom: none;">
|
|
|
{% if kofi_settings['subs'] %}
|
|
|
- {% set s_points_label = 'point' if sub_points == 1 else 'points' %}
|
|
|
- Kofi subscribers get {{ kofi_settings['sub_points'] }} {{ s_points_label }} every month.<br>
|
|
|
+ {% set s_points_label = 'point' if kofi_settings['sub_points'] == 1 else 'points' %}
|
|
|
+ <td>Ko-fi subscribers get {{ kofi_settings['sub_points'] }} {{ s_points_label }} every month.<br></td>
|
|
|
{% endif %}
|
|
|
- <i> You must be authenticated with Owncast to earn points for donations.</i><br>
|
|
|
-
|
|
|
+ </tr>
|
|
|
+ {% endif %}
|
|
|
+
|
|
|
+ {% if gb_settings['donations'] %}
|
|
|
+ <tr style="border-bottom: none;">
|
|
|
+ <td><h4><a href="{{ gb_settings['gb_url'] }}" target="new"><img style="height: 25px; width: auto; padding-right: 8px; !important" alt="Give Butter Logo" src="/static/img/givebutter.png"></a> GiveButter</h4></td>
|
|
|
+ {% set d_points_label = 'point' if gb_settings['donation_points'] == 1 else 'points' %}
|
|
|
+ <td>You are awarded {{ gb_settings['donation_points'] }} {{ d_points_label }} for every dollar donated.<br></td>
|
|
|
+ </tr>
|
|
|
+ {% endif %}
|
|
|
+ </table>
|
|
|
+ <br><i> You must be authenticated with Owncast to earn points for donations.</i><br>
|
|
|
{% for user in users %}
|
|
|
|
|
|
<div>
|
|
|
{% if user['user_authed'] %}
|
|
|
<br>
|
|
|
- OwnchatBot recognizes your Kofi account by your email address. In order for OwnchatBot to award your donation points, you must enter the email address associated with your Kofi account here.<br><br>
|
|
|
+ OwnchatBot recognizes your Ko-fi and GiveButter accounts by your email address. In order for OwnchatBot to award your donation points, you must supply your email address.<br><br>
|
|
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
|
{% if messages %}
|
|
|
{% for category, message in messages %}
|
|
|
{% if category == 'failure' %}
|
|
|
- <span style="color: red;">{{ message }}</span>
|
|
|
+ <span style="color: orange;">{{ message }}</span>
|
|
|
{% endif %}
|
|
|
{% if category == 'success' %}
|
|
|
<span style="color: yellow;">{{ message }}</span>
|
|
|
@@ -70,25 +83,30 @@
|
|
|
{% endwith %}
|
|
|
|
|
|
<form id="code" method="POST" action="/set_viewer_email">
|
|
|
- <label for="code">Type !reg_mail into the chat, and enter the code it gives you here:</label>
|
|
|
- <input id="code" type="number" name="code" size="6" aria-required="true" required><br>
|
|
|
- <label for="new_email">Enter the email address associated with your Kofi account:</label>
|
|
|
- <input id="code" type="text" name="new_email" value="{{ user[4] }}" size="40" aria-required="true" aria-label="Enter email address" required>
|
|
|
- <input type="hidden" name="instance" value="{{ instance }}">
|
|
|
- <input type="hidden" name="user_name" value="{{ username }}">
|
|
|
- <br>Email addresses are <b>ONLY</b> used for Kofi integration. They are not sent to any other individual or company, and will not be used to create or send mailing lists of any kind.<br>
|
|
|
+ <table>
|
|
|
+ <tr style="border-bottom: none;">
|
|
|
+ <td><label for="reg_code">Type !reg_mail into the chat, and enter the code it gives you here:</label></td>
|
|
|
+ <td><input id="reg_code" type="number" name="code" size="6" aria-required="true" required></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="border-bottom: none;">
|
|
|
+ <td><label for="email">Enter your email address:</label></td>
|
|
|
+ <td><input id="email" type="text" name="new_email" value="{{ user[4] }}" size="40" aria-required="true" aria-label="Enter email address" required></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <input id="code" type="hidden" name="instance" value="{{ instance }}">
|
|
|
+ <input id="code" type="hidden" name="user_name" value="{{ username }}">
|
|
|
<input id="code" type="hidden" name="user_id" value="{{ user[0] }}"> <button class="button button2" type="submit">Save Email</button>
|
|
|
</form><br>
|
|
|
+ <i>Email addresses are ONLY used for Ko-fi and GiveButter integration. They are not sent to any other individual or company, and will not be used to create or send mailing lists of any kind. Ever.</i>
|
|
|
{% endif %}
|
|
|
</div>
|
|
|
{% endfor %}
|
|
|
- {% endif %}
|
|
|
|
|
|
<hr>
|
|
|
<h4>Other stuff</h4>
|
|
|
<div>
|
|
|
OwnchatBot can be downloaded from <a href=https://git.deadtom.me/deadtom/OwnchatBot>https://git.deadtom.me/deadtom/OwnchatBot</a>.<br>
|
|
|
- If you are thrilled to death with OwnchatBot, and want to throw a little monetary love the developer's way, <a href=https://ko-fi.com/deadtom>he's on Kofi</a>.<br>
|
|
|
+ If you are thrilled to death with OwnchatBot, and want to throw a little monetary love the developer's way, <a href=https://ko-fi.com/deadtom>he's on Ko-fi</a>.<br>
|
|
|
OwnchatBot © 2025 by <a href=https://www.deadtom.me>DeadTOm</a> is licensed under <a href=https://creativecommons.org/licenses/by-sa/4.0/>Creative Commons Attribution-ShareAlike 4.0 International</a>.
|
|
|
</div>
|
|
|
<br><br>
|