#!/bin/bash echo "=== GLOBAL COMMANDS ===" bash /tmp/diag.sh 2>&1 | sed -n '/GLOBAL COMMANDS/,/GUILD COMMANDS/p' echo echo "=== GUILD COMMANDS ===" bash /tmp/diag.sh 2>&1 | sed -n '/GUILD COMMANDS/,/BOT MEMBER/p' echo echo "=== inspect bot internals ===" docker exec vulnforge python -c " import sys; sys.path.insert(0, '/app') from main import VulnForge b = VulnForge() b.load_extension('cogs.cve') b.load_extension('cogs.weekly') print('Before manual add:') print(' get_application_commands():', len(b.get_application_commands())) print(' get_all_application_commands():', len(list(b.get_all_application_commands()))) print(' _application_commands_to_add:', b._application_commands_to_add) print() # Manual add for cog_name, cog in b.cogs.items(): for cmd in getattr(cog, 'application_commands', []): cmd.guild_ids_to_rollout.add(1502477191093420135) b.add_application_command(cmd, use_rollout=True) print('After manual add:') print(' get_application_commands():', len(b.get_application_commands())) print(' get_all_application_commands():', len(list(b.get_all_application_commands()))) print(' _application_commands_to_add:', len(b._application_commands_to_add) if b._application_commands_to_add else 0) print() print('Commands details:') for c in b.get_all_application_commands(): print(' -', c.name, 'guild_ids_to_rollout:', c.guild_ids_to_rollout, 'is_global:', c.is_global) "