From c13ca57ec3913128931aa460085f34b8da057a62 Mon Sep 17 00:00:00 2001 From: Sean Wang Date: Thu, 21 Mar 2019 18:11:53 -0400 Subject: [PATCH] Changed bot token to config file format rather than .py file format --- .gitignore | 1 + christian_crusader.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ad1b2a1..c79e101 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Seans Stuff /.idea BotToken.py +BotToken.config # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/christian_crusader.py b/christian_crusader.py index 2ce5a52..9b4b146 100644 --- a/christian_crusader.py +++ b/christian_crusader.py @@ -1,10 +1,12 @@ from discord.ext.commands import Bot from discord import Game import random -from BotToken import BotToken +from pathlib import Path + BOT_PREFIX = "+" -TOKEN = BotToken().token +token_config = open(Path("BotToken.config")) +TOKEN = token_config.readline().split()[0] client = Bot(command_prefix=BOT_PREFIX)