Explorar o código

Created new default config files

deadtom hai 1 mes
pai
achega
221454d19e

+ 0 - 4
ownchatbot/defaults/config.py

@@ -9,7 +9,3 @@ POINTS_INTERVAL = 5  # How long, in minutes, between points awards
 POINTS_AWARD = 5  # How many points awarded each interval?
 SECRET_KEY = ''  # Needed for internal flask stuff. Generated during setup. DO NOT CHANGE
 PREFIX = '!'  # Preceeds commands, so OwnchatBot knows what is a command
-KOFI_TOKEN = ''  # Needed to validate Ko-fi with OCB webhook. Get from Ko-fi Settings -> More -> API -> Webhooks -> Advanced - Verification Token.
-KOFI_INTEGRATION = False  # Integrate OwnchatBot with Ko-fi
-GB_SECRET = 'breadandbutter'  # GiveButter verification signature
-GB_INTEGRATION = True  # Integrate OwnchatBot with GiveBUtter

+ 7 - 1
ownchatbot/defaults/givebutter.py

@@ -1 +1,7 @@
-GB_SETTINGS = {'donations': True, 'donation_points': 100, 'gb_url': ''}
+GB_SETTINGS = {
+     "integration": "",
+     "secret": "",
+     'donations': False,
+     'donation_points': 100,
+     'gb_url': ''
+}

+ 2 - 0
ownchatbot/defaults/kofi.py

@@ -1,4 +1,6 @@
 KOFI_SETTINGS = {
+    "integration": "",  # Enable Ko-fi integration
+    "token": "",  # Needed to validate Ko-fi with OCB webhook. Get from Ko-fi Settings -> More -> API -> Webhooks -> Advanced - Verification Token.
     "donations": True,  # Reward donations with points
     "donation_points": 100,  # How many points per dollar donated?
     "subs": False,  # Reward subscriptions with points