Skip to content

Commit 474cab1

Browse files
committed
Bump version to 1.7.10 and improve code clarity
Updated the application version to 1.7.10 in both the Dockerfile and `main.py`. Refactored `log_manager` instantiation in `main.py` to use keyword arguments for better readability. Fixed a typo in the `CustomModules` dependency in `requirements.txt` to ensure correct module naming. These changes enhance maintainability and align the application with the updated version.
1 parent caa5b51 commit 474cab1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ LABEL maintainer="Discord: pika.pika.no.mi (970119359840284743)" \
2828
description="This bot automatically publishes messages in announcement channels on discord." \
2929
release=$BUILD_DATE \
3030
url="https://github.com/Serpensin/DiscordBots-AutoPublisher" \
31-
version="1.7.9"
31+
version="1.7.10"
3232

3333
CMD ["python3", "main.py"]

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Init
2424
discord.VoiceClient.warn_nacl = False
2525
load_dotenv()
26-
BOT_VERSION = "1.7.9"
26+
BOT_VERSION = "1.7.10"
2727
APP_FOLDER_NAME = "AutoPublisher"
2828
BOT_NAME = "AutoPublisher"
2929
if not os.path.exists(f"{APP_FOLDER_NAME}//Logs"):
@@ -64,7 +64,7 @@
6464
# Set-up Logging
6565
LOG_FOLDER = f"{APP_FOLDER_NAME}//Logs//"
6666
BUFFER_FOLDER = f"{APP_FOLDER_NAME}//Buffer//"
67-
log_manager = log_handler.LogManager(LOG_FOLDER, BOT_NAME, LOG_LEVEL)
67+
log_manager = log_handler.LogManager(log_folder=LOG_FOLDER, app_folder_name=BOT_NAME, log_level=LOG_LEVEL)
6868
discord_logger = log_manager.get_logger("discord")
6969
program_logger = log_manager.get_logger("Program")
7070
program_logger.info("Engine powering up...")

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ attrs
66
certifi
77
charset-normalizer
88
colorama
9-
CustomModules[log_handler,bot_directory]
9+
CustomModules[loghandler,botdirectory]
1010
discord.py>2.0.0
1111
frozenlist
1212
idna

0 commit comments

Comments
 (0)