disable privileged intents in TSSBOT/start_bot.py (#1231)

bot.run() was crashing with PrivilegedIntentsRequired because
intents.message_content=True needs the toggle enabled in the Discord
developer portal. Mirror SREBOT's intent config: message_content=False,
reactions+messages on. TSSBOT can opt into the privileged intent later
if/when it needs message content.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
NotSoToothless
2026-05-14 00:12:00 -07:00
committed by GitHub
parent 72833465dc
commit e4677b7564
+3 -1
View File
@@ -33,7 +33,9 @@ def _handle_signal(signum, _frame):
TOKEN = os.environ.get("DISCORD_KEY", "").strip() TOKEN = os.environ.get("DISCORD_KEY", "").strip()
intents = discord.Intents.default() intents = discord.Intents.default()
intents.message_content = True intents.message_content = False
intents.reactions = True
intents.messages = True
bot = commands.Bot(command_prefix="!", intents=intents) bot = commands.Bot(command_prefix="!", intents=intents)