1
0
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:
2018-11-01 04:04:01 +05:30
parent 1127673d28
commit 260d1f6fde
2 changed files with 55 additions and 12 deletions

View File

@@ -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()