Selaa lähdekoodia

Now moves kofi related variables from config.py to alerts.py, and adds gb_name dicitonary entry to alerts.py

deadtom 3 viikkoa sitten
vanhempi
sitoutus
508cbd0419
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      upgrade.sh

+ 2 - 0
upgrade.sh

@@ -28,6 +28,8 @@ update_config() {
     sed -i "/^KOFI_TOKEN/d" instance/config.py  # Delete KOFI_TOKEN line from config.py
     sed -i "/^KOFI_INTEGRATION/d" instance/config.py  # Delete KOFI_INTEGRATION line from config.py
 
+    sed -i "s/}/,\"gb_name\"": \"\"}/" instance/alerts.py  # Append those values to kofi.py
+    
     cp ownchatbot/defaults/givebutter.py instance/  # Copy the default givebutter config file into instance/
 }