How antnygamer/twitchcraft works
TwitchCraft is a Windows desktop application that connects Twitch chat and viewer activity to a Minecraft server. The main flow is setup and Twitch authorization, start or attach to a server, receive chat/reward activity, execute configured gameplay commands, and maintain viewer tokens and statistics. The graph includes the documented remote-control option and major customization capabilities. Several runtime modules are unsampled, so uncertain links are omitted; README-backed relationships are identified as such.
Main entry points: MainHandlerLifecycle.cs Session Lifecycle · CommandService.cs Command Dispatch · MainHandlerState.cs Runtime Coordination · TokenService.cs Viewer Tokens
Components 26
Setup and UI
- Setup Screens
TwitchCraft_SOURCE/Frames/Setup.xaml.cs - Settings Editor
TwitchCraft_SOURCE/Frames/Settings.xaml.cs - Twitch Authorization
TwitchCraft_SOURCE/Setup/TwitchOAuthAuthorizer.cs - Server Preparation
TwitchCraft_SOURCE/Setup/DatapackInstaller.cs - Live Dashboard
TwitchCraft_SOURCE/Frames/Main.xaml.cs
Session Runtime
- Session Lifecycle
TwitchCraft_SOURCE/Runtime/MainHandlerLifecycle.cs - Runtime Coordination
TwitchCraft_SOURCE/Runtime/MainHandlerState.cs - Minecraft Runtime
TwitchCraft_SOURCE/Runtime/Minecraft/MinecraftRuntime.cs - Server Process
TwitchCraft_SOURCE/Runtime/Minecraft/ServerSession.cs - RCON Control
TwitchCraft_SOURCE/Runtime/Minecraft/MinecraftRCONClient.cs - Server Query
TwitchCraft_SOURCE/Runtime/Minecraft/MinecraftQueryClient.cs - Player Monitoring
TwitchCraft_SOURCE/Runtime/Players/PlayerMonitor.cs
Twitch Integration
- Twitch Connection
TwitchCraft_SOURCE/Runtime/Twitch/TwitchRuntime.cs - IRC Messaging
TwitchCraft_SOURCE/Runtime/Twitch/TwitchMessages.cs - Follow Rewards
TwitchCraft_SOURCE/Runtime/Twitch/TwitchFollowRewards.cs
Commands and Gameplay
- Command Dispatch
TwitchCraft_SOURCE/Commands/CommandService.cs - Gameplay Commands
TwitchCraft_SOURCE/Commands/GameplayCore.cs - Minigames
TwitchCraft_SOURCE/Commands/Minigames/MinigameSession.cs
Persistent State
- Configuration
TwitchCraft_SOURCE/Setup/ConfigurationStore.cs - Viewer Tokens
TwitchCraft_SOURCE/Tokens/TokenService.cs - Token Persistence
TwitchCraft_SOURCE/Tokens/TokenStore.cs - Statistics
TwitchCraft_SOURCE/Statistics/StatisticsService.cs - Statistics Persistence
TwitchCraft_SOURCE/Statistics/StatisticsStore.cs
Other components
- Streamer
- Twitch Chat
- Minecraft Server
Connections 30
- Streamer → Setup Screens: configures
- Setup Screens → Twitch Authorization: requests auth
- Twitch Authorization → Streamer: authorizes account
- Setup Screens → Configuration: saves settings
- Settings Editor → Configuration: updates settings
- Session Lifecycle → Configuration: loads configuration
TwitchCraft_SOURCE/Runtime/MainHandlerLifecycle.cs - Session Lifecycle → Server Preparation: installs datapack
TwitchCraft_SOURCE/Runtime/MainHandlerLifecycle.cs - Session Lifecycle → Server Process: starts process
- Session Lifecycle → RCON Control: connects remotely
TwitchCraft_SOURCE/Runtime/MainHandlerLifecycle.cs - Session Lifecycle → Runtime Coordination: coordinates runtime
TwitchCraft_SOURCE/Runtime/MainHandlerState.cs - Runtime Coordination → Command Dispatch: creates service
TwitchCraft_SOURCE/Runtime/MainHandlerState.cs - Runtime Coordination → Viewer Tokens: creates service
TwitchCraft_SOURCE/Runtime/MainHandlerState.cs - Runtime Coordination → Statistics: creates service
TwitchCraft_SOURCE/Runtime/MainHandlerState.cs - Server Process → Minecraft Server: hosts world
- RCON Control → Minecraft Server: sends commands
- Minecraft Runtime → Server Query: queries server
- Server Query → Minecraft Server: reads player status
- Player Monitoring → Server Query: probes players
- Twitch Connection → Twitch Chat: connects to
- Twitch Connection → IRC Messaging: handles messages
- IRC Messaging → Command Dispatch: dispatches commands
- Command Dispatch → Gameplay Commands: routes command
- Command Dispatch → Minigames: routes minigame
- Gameplay Commands → Minecraft Runtime: controls gameplay
- Command Dispatch → Viewer Tokens: checks balances
- Follow Rewards → Viewer Tokens: awards tokens
- Viewer Tokens → Token Persistence: persists balances
TwitchCraft_SOURCE/Tokens/TokenService.cs - Statistics → Statistics Persistence: persists statistics
TwitchCraft_SOURCE/Statistics/StatisticsService.cs - Session Lifecycle → Statistics: starts session stats
TwitchCraft_SOURCE/Runtime/MainHandlerLifecycle.cs - Live Dashboard → Session Lifecycle: sends commands
TwitchCraft_SOURCE/Frames/Main.xaml.cs