Skip to content

Commit 63af046

Browse files
committed
FEATURE: Move BOT_TOKEN to config file
1 parent 7585dba commit 63af046

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,4 @@ __pycache__
9898

9999
# Keep logrotated files out of git
100100
logs/*.log*
101+
.config.py

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from telegram.inline.inlinekeyboardbutton import InlineKeyboardButton
1212
from telegram.inline.inlinekeyboardmarkup import InlineKeyboardMarkup
1313

14+
from config import BOT_TOKEN
1415
from database.db_wrapper import DBwrapper
1516
from database.statistics import get_user_stats
1617
from game.blackJackGame import BlackJackGame
@@ -21,8 +22,6 @@
2122

2223
__author__ = 'Rico'
2324

24-
BOT_TOKEN = "<your_bot_token>"
25-
2625
logdir_path = os.path.dirname(os.path.abspath(__file__))
2726
logfile_path = os.path.join(logdir_path, "logs", "bot.log")
2827

0 commit comments

Comments
 (0)