|
|
|
@ -5,16 +5,19 @@ import subprocess
|
|
|
|
|
import sys
|
|
|
|
|
sys.path.append("ddbot_config")
|
|
|
|
|
import ddbot_config as i
|
|
|
|
|
arg1 = (sys.argv)[1]
|
|
|
|
|
print(arg1)
|
|
|
|
|
#bot = telebot.TeleBot("5003942445:AAFnmFx0tJ32vpNrULYkkvcbglHDarQKKo8")
|
|
|
|
|
|
|
|
|
|
ddusr = "sqlite3 bank1.db.sqlite 'select balance from balance1 where id = '1';'"
|
|
|
|
|
#ddusr = "sqlite3 bank1.db.sqlite 'select balance from balance1 where id = '1';'"
|
|
|
|
|
ddusr = "sqlite3 {arg1} 'select balance from balance1 where id = '1';'"
|
|
|
|
|
ddamt = str(subprocess.check_output(ddusr, shell=True))[2:-3]
|
|
|
|
|
|
|
|
|
|
bot = telebot.TeleBot(i.botToken)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
idusr = "sqlite3 bank1.db.sqlite 'select balance from balance1 where id = '1';'"
|
|
|
|
|
ddamt = str(subprocess.check_output(ddusr, shell=True))[2:-3]
|
|
|
|
|
bot = telebot.TeleBot("5003942445:AAFnmFx0tJ32vpNrULYkkvcbglHDarQKKo8")
|
|
|
|
|
#idusr = "sqlite3 bank1.db.sqlite 'select balance from balance1 where id = '1';'"
|
|
|
|
|
#ddamt = str(subprocess.check_output(ddusr, shell=True))[2:-3]
|
|
|
|
|
|
|
|
|
|
@bot.message_handler(commands=['ddbank'])
|
|
|
|
|
def send_ddbank(message):
|
|
|
|
|