forked from Pavel_Durov/python_bot
зачал бд, удалил лишнее
This commit is contained in:
parent
319624729f
commit
0f4b4caed0
Binary file not shown.
BIN
faggot.jpg
BIN
faggot.jpg
Binary file not shown.
Before Width: | Height: | Size: 93 KiB |
23
sql.py
Normal file
23
sql.py
Normal file
@ -0,0 +1,23 @@
|
||||
import sqlite3 as sq
|
||||
|
||||
async def db_start():
|
||||
global db, cur
|
||||
|
||||
db = sq.connect('dickpick.db')
|
||||
cur = db.cursor()
|
||||
|
||||
cur.execute('CREATE TABLE IF NOT EXISTS users(users_id TEXT PRIMARY KEY, user_name TEXT, dick_size INT)')
|
||||
db.commit()
|
||||
|
||||
async def add_user():
|
||||
user_id = message.from_user.id
|
||||
cur.execute('INSERT INTO users VALUES(users_id, ?, ?)')
|
||||
user_name = message.from_user.full_name
|
||||
cur.execute('INSERT INTO users VALUES(?, user_name, ?)')
|
||||
db.commit()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
BIN
ya-pidoras.jpg
BIN
ya-pidoras.jpg
Binary file not shown.
Before Width: | Height: | Size: 77 KiB |
Loading…
Reference in New Issue
Block a user