mirror of
https://gitlab.com/questable/questable_bot
synced 2025-10-24 01:40:05 +02:00
Modify DB. Add message handler. Deal with Add Quest/Side QUest.
Changed DB to not mark other fields as NOT NULL. Changed Side-Quest(s) to Side Quests in start. add add_quest method that deals with "Add Quests" and "Add Side Quests" messages.
This commit is contained in:
@@ -89,7 +89,7 @@ class player():
|
||||
row = cursor.fetchone()
|
||||
if not row:
|
||||
cursor.execute('INSERT INTO state(chat_id, state, extra) '
|
||||
'VALUES(?,?)', (chat_id, 'none', 0))
|
||||
'VALUES(?,?,?)', (chat_id, 'none', 0))
|
||||
db.commit()
|
||||
cursor.execute('SELECT * FROM points WHERE chat_id = ?', (chat_id,))
|
||||
row = cursor.fetchone()
|
||||
|
||||
Reference in New Issue
Block a user