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:
+3
-1
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user