aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/bot.py b/bot.py
index 44c961d..d2999d1 100644
--- a/bot.py
+++ b/bot.py
@@ -40,11 +40,9 @@ def init_files():
init_files()
-#TOKEN= "your token goes here"
-TOKEN = "yourtokengoeshere" #real token
-
-#server = "put your serevr id here"
-server = 1000000000000005 # real server
+_config_lines = [l.strip() for l in (CONFIG_DIR / "tokens.txt").read_text(encoding="utf-8").splitlines() if l.strip() and not l.strip().startswith("#")]
+TOKEN = _config_lines[0]
+server = int(_config_lines[1])
intents = discord.Intents.default()
intents.message_content = True