Skip to content

Commit

Permalink
add perdezhs
Browse files Browse the repository at this point in the history
  • Loading branch information
teleportx committed Feb 19, 2024
1 parent 7200db0 commit 7fb2332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/User.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ def __init__(self):

class User(BaseModel):
uid = BigIntegerField(primary_key=True, unique=True)
name = CharField(max_length=64)
name = CharField(max_length=64, default='New user')
admin = PermissionField()
sret = DateTimeField(null=True, default=None)
perdezhs = BigIntegerField(default=0)


class SretSession(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions handlers/srat.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async def send_srat(message: types.Message, user: User):
elif message.text == 'Я просто пернул':
text = '⚠️ ВНИМАНИЕ ⚠️\n' \
'`%s` просто _пернул_'
user.perdezhs += 1
sret = False

elif message.text == 'Я иду ЛЮТЕЙШЕ ДРИСТАТЬ':
Expand Down

0 comments on commit 7fb2332

Please sign in to comment.