Pārlūkot izejas kodu

moving secure_config to a default location, also adding a check to see if it's been filled out in main.py

tags/v0.1
Ben Kurtovic pirms 13 gadiem
vecāks
revīzija
a9a06f2d72
2 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. +0
    -0
      config/secure_config.py.default
  2. +7
    -0
      main.py

config/secure_config.py → config/secure_config.py.default Parādīt failu


+ 7
- 0
main.py Parādīt failu

@@ -2,6 +2,13 @@

from subprocess import *

try:
from config.secure_config import *
except ImportError:
print "Can't find a secure_config file!"
print "Make sure you have configured the bot by moving 'config/secure_config.py.default' to 'config/secure_config.py' and by filling out the information inside."
exit()

while 1:
cmd = ['python', 'bot.py']
call(cmd)

Notiek ielāde…
Atcelt
Saglabāt