mirror of
https://github.com/Sean-S-Wang/christian_crusader_discord.git
synced 2026-01-09 06:27:55 -05:00
Changed bot token to config file format rather than .py file format
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
# Seans Stuff
|
||||
/.idea
|
||||
BotToken.py
|
||||
BotToken.config
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user