Initial ThreatLens release
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# Inspect what slash commands nextcord actually knows about.
|
||||
docker exec vulnforge python -c "
|
||||
import sys; sys.path.insert(0, '/app')
|
||||
from main import VulnForge
|
||||
bot = VulnForge()
|
||||
# Manually load the extensions so we can see the result.
|
||||
bot.load_extension('cogs.cve')
|
||||
bot.load_extension('cogs.weekly')
|
||||
print('=== get_application_commands ===')
|
||||
for c in bot.get_application_commands():
|
||||
print(' -', type(c).__name__, repr(getattr(c, 'name', None)), 'guild_ids=', getattr(c, 'guild_ids', None))
|
||||
print()
|
||||
print('=== cogs ===')
|
||||
for name, cog in bot.cogs.items():
|
||||
print(' -', name, 'application_commands:', list(getattr(cog, 'application_commands', [])))
|
||||
print()
|
||||
print('=== _application_commands_to_add (internal) ===')
|
||||
internal = getattr(bot, '_application_commands_to_add', None) or getattr(bot, '_pending_application_commands', None)
|
||||
print(' ', internal)
|
||||
print()
|
||||
print('=== all attributes containing \"command\" ===')
|
||||
for a in dir(bot):
|
||||
if 'command' in a.lower() and not a.startswith('__'):
|
||||
print(' -', a)
|
||||
"
|
||||
Reference in New Issue
Block a user