aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authordavid <[email protected]>2026-03-12 17:28:32 -0300
committerdavid <[email protected]>2026-03-12 17:28:32 -0300
commit770c5f2b75c16cb14a6e017089e11e5947eeb4d8 (patch)
treef20e44e9ecd05478342fd37787b6bfd52b1ae6a8 /bot.py
parenta9d1bb82516c2c54658f598054d449040cca9002 (diff)
downloadfaggot-chan-770c5f2b75c16cb14a6e017089e11e5947eeb4d8.tar.gz
faggot-chan-770c5f2b75c16cb14a6e017089e11e5947eeb4d8.zip
vibecoded a better prompt because ai know best about ai. and also maybe don't just hardcode the token teehee
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