mirror of
https://github.com/SantaSpeen/RoyaltyIT-tg-bot.git
synced 2026-02-16 10:30:45 +00:00
Small fixes
This commit is contained in:
@@ -18,6 +18,7 @@ $ cd src
|
||||
# Install requirements
|
||||
$ python3 -m pip install -r requirements.txt
|
||||
# Create configuration file
|
||||
# Create sqlite database from src/sl3.sql
|
||||
# Then start the bot
|
||||
$ python3 main.py
|
||||
```
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from peewee import Model, SqliteDatabase, IntegerField, DoubleField, BooleanField, TextField
|
||||
|
||||
|
||||
class BasicModel(Model):
|
||||
class Meta:
|
||||
database = SqliteDatabase('sqlite3.db')
|
||||
|
||||
@@ -90,7 +90,7 @@ async def unmute(msg: types.Message):
|
||||
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):
|
||||
reply_message = msg.reply_to_message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user