Skip to content

Commit 07fa00d

Browse files
committed
Cleaning
1 parent 0c63076 commit 07fa00d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

handlers/users/check_usr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@dp.message(User_Check())
1212
async def start_handler(msg: types.Message):
1313
"""
14-
Handles the /start command to check if the user has joined the required channels.
14+
Handles the text to check if the user has joined the required channels.
1515
If the user has not joined, provides a list of channels and their invitation links.
1616
1717
Args:

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ async def main():
4343
# Configure logging
4444
format = '%(filename)s - %(funcName)s - %(lineno)d - %(name)s - %(levelname)s - %(message)s'
4545
logging.basicConfig(
46-
#filename=log_file_name, # Uncomment this line to log to a file
47-
level=logging.INFO, # Set the logging level to INFO
46+
filename=log_file_name, # Save error log on file
47+
level=logging.ERROR, # Set the logging level to INFO
4848
format=format, # Set the logging format
49-
stream=sys.stdout # Log to stdout
49+
# stream=sys.stdout # Log to stdout
5050
)
5151
# Run the main function asynchronously
5252
asyncio.run(main())

middlewares/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# from .throttling import ThrottlingMiddleware
2+
from cython_code.throttling_middleware import ThrottlingMiddleware

0 commit comments

Comments
 (0)