mirror of
https://github.com/SantaSpeen/RoyaltyIT-tg-bot.git
synced 2026-10-26 22:10:32 +00:00
Small fixes
This commit is contained in:
1 parent
f60ff3164c
commit
2d45aa1012
3 files changed
+3
-1
No files matched your search
@@ -18,6 +18,7 @@ $ cd src
|
|||||||
# Install requirements
|
# Install requirements
|
||||||
$ python3 -m pip install -r requirements.txt
|
$ python3 -m pip install -r requirements.txt
|
||||||
# Create configuration file
|
# Create configuration file
|
||||||
|
# Create sqlite database from src/sl3.sql
|
||||||
# Then start the bot
|
# Then start the bot
|
||||||
$ python3 main.py
|
$ python3 main.py
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
from peewee import Model, SqliteDatabase, IntegerField, DoubleField, BooleanField, TextField
|
from peewee import Model, SqliteDatabase, IntegerField, DoubleField, BooleanField, TextField
|
||||||
|
|
||||||
|
|
||||||
class BasicModel(Model):
|
class BasicModel(Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
database = SqliteDatabase('sqlite3.db')
|
database = SqliteDatabase('sqlite3.db')
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ async def unmute(msg: types.Message):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@dp.message_handler(regexp=r"\A(?:.|\/)(?:ban|заскамить)", is_chat_admin=True, chat_type=ChatType.SUPERGROUP)
|
@dp.message_handler(regexp=r"\A(?:.|\/)(?:ban|бан)", is_chat_admin=True, chat_type=ChatType.SUPERGROUP)
|
||||||
async def ban(msg: types.Message):
|
async def ban(msg: types.Message):
|
||||||
reply_message = msg.reply_to_message
|
reply_message = msg.reply_to_message
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user