How seradotflac/nighty works
Nighty is described as a reversed source release of a Discord selfbot. Its likely user workflow is to use the Nighty application to initiate Discord actions and receive Discord state or responses. The tree shows a Discord client library, command framework, voice support, and a webview runtime, but Nighty.py and most application wiring were not sampled; links between those pieces are therefore limited. The bundled JavaScript is obfuscated, so its behavior cannot be mapped reliably.
Main entry points: client.py Discord client · window.py Webview window · gateway.py Gateway connection · http.py HTTP API
Components 18
Nighty application
- Nighty entry
Nighty.py
Discord runtime
- Discord client
discord/client.py - Connection state
discord/state.py - Gateway connection
discord/gateway.py - HTTP API
discord/http.py
Discord capabilities
- Command framework
discord/ext/commands/bot.py - Command context
discord/ext/commands/context.py - Messages and channels
discord/message.py - Interactions
discord/interactions.py - Voice client
discord/voice_client.py - Webhook operations
discord/webhook/async_.py - Application features
discord/application.py
Webview runtime
- Webview window
webview/window.py - Native GUI backend
webview/guilib.py - Cocoa backend
webview/platforms/cocoa.py - Bundled web assets
nighty_web_files/a_data/main.js
Other components
- User
- Discord service
Connections 16
- User → Nighty entry: uses
- Discord client → Connection state: manages
- Discord client → HTTP API: requests
- Discord client → Gateway connection: connects
- HTTP API → Discord service: sends requests
- Gateway connection → Discord service: opens connection
- Discord client → Command framework: supports
- Command framework → Command context: creates
- Command context → Messages and channels: accesses
- Discord client → Interactions: exposes
- Discord client → Voice client: supports
- Discord client → Webhook operations: supports
- Discord client → Application features: supports
- Webview window → Native GUI backend: delegates to
- Native GUI backend → Cocoa backend: selects platform
- Webview window → Bundled web assets: loads content