|
|
|
@ -188,7 +188,7 @@ def addUser(a):
|
|
|
|
|
print()
|
|
|
|
|
|
|
|
|
|
def startBot(a):
|
|
|
|
|
subprocess.Popen([sys.executable, 'ddbot.py'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
|
|
|
|
subprocess.Popen([sys.executable, "ddbot.py"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
|
|
|
|
|
|
|
|
|
def manageBankmenu(a):
|
|
|
|
|
bankNam = a.split(".")[0]
|
|
|
|
@ -313,16 +313,19 @@ def delBank():
|
|
|
|
|
print()
|
|
|
|
|
|
|
|
|
|
def telBot():
|
|
|
|
|
f = open("ddbot_config.py","r")
|
|
|
|
|
os.system("touch config_ddbot.py")
|
|
|
|
|
f = open("config_ddbot.py","r")
|
|
|
|
|
print(f.read())
|
|
|
|
|
f.close()
|
|
|
|
|
botToken = input("Insert bot token: ( Leave blank to remain unchanged ) ")
|
|
|
|
|
listBank()
|
|
|
|
|
if botToken != "":
|
|
|
|
|
f = open("ddbot_config.py", "w")
|
|
|
|
|
botBank = input("Which bank shall the bot use? ( Incorrect bank name will result in the bot not working. ) ")
|
|
|
|
|
f = open('config_ddbot.py', 'w')
|
|
|
|
|
f.write(f"botToken = \"{botToken}\"")
|
|
|
|
|
f.write(f"\nbotBank = \"{botBank}\"")
|
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def mainFunc():
|
|
|
|
|
print('Welcome to the Kniod D&D Banking Software! ')
|
|
|
|
|
while True:
|
|
|
|
|