parent
52394e55b7
commit
d006fdc0da
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import telebot
|
||||
import subprocess
|
||||
import sys
|
||||
sys.path.append("ddbot_config")
|
||||
import ddbot_config as i
|
||||
|
||||
ddusr = "sqlite3 bank1.db.sqlite '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")
|
||||
|
||||
@bot.message_handler(commands=['ddbank'])
|
||||
def send_ddbank(message):
|
||||
bot.reply_to(message, ddamt)
|
||||
|
||||
bot.infinity_polling()
|
Reference in new issue