|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
import sqlite3
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
clear = lambda: os.system('clear')
|
|
|
|
|
|
|
|
|
|
def return_31(wrgUser,a):
|
|
|
|
@ -305,6 +306,17 @@ def delBank():
|
|
|
|
|
print(f'Bank {delBank} has been deleted.')
|
|
|
|
|
print()
|
|
|
|
|
|
|
|
|
|
def telBot():
|
|
|
|
|
f = open("ddbot_config.py","r")
|
|
|
|
|
print(f.read())
|
|
|
|
|
f.close()
|
|
|
|
|
botToken = input("Insert bot token: ( Leave blank to remain unchanged ) ")
|
|
|
|
|
if botToken != "":
|
|
|
|
|
f = open("ddbot_config.py", "w")
|
|
|
|
|
f.write(f"botToken = \"{botToken}\"")
|
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def mainFunc():
|
|
|
|
|
print('Welcome to the Kniod D&D Banking Software! ')
|
|
|
|
|
while True:
|
|
|
|
@ -313,6 +325,7 @@ def mainFunc():
|
|
|
|
|
2. Add new bank.
|
|
|
|
|
3. List banks.
|
|
|
|
|
4. Delete a bank.
|
|
|
|
|
5. Bot Setup.
|
|
|
|
|
9 to quit.
|
|
|
|
|
""")
|
|
|
|
|
mainOption = int(input("Choose an option: "))
|
|
|
|
@ -324,6 +337,8 @@ def mainFunc():
|
|
|
|
|
listBank()
|
|
|
|
|
elif mainOption == 4:
|
|
|
|
|
delBank()
|
|
|
|
|
elif mainOption == 5:
|
|
|
|
|
telBot()
|
|
|
|
|
elif mainOption == 9:
|
|
|
|
|
exit()
|
|
|
|
|
|
|
|
|
|