Преглед на файлове

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

deadtom преди 3 седмици
родител
ревизия
508cbd0419
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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/
 }