mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-02 02:44:50 +00:00
Try fix
This commit is contained in:
parent
698b0528b3
commit
00c326c8b6
1 changed files with 1 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ async def task(msg, warn = False, sec = None):
|
|||
def wait(sec):
|
||||
async def ___(flt, cli, msg):
|
||||
user_id = msg.from_user.id
|
||||
time.mktime(msg.date.timetuple())
|
||||
if user_id in data:
|
||||
if msg.date >= data[user_id]['timestamp'] + flt.data:
|
||||
data[user_id] = {'timestamp' : msg.date, 'warned' : False}
|
||||
|
|
|
|||
Loading…
Reference in a new issue