How krex381/token-onliner works
Project type and purpose
• This is a Node.js-based background service / CLI utility whose sole purpose is to keep multiple Discord tokens “online” with customized activity (game status, Spotify status), to manage reconnections, and to handle errors gracefully.
File structure
• All files live at the top level; there are no subdirectories.
• index.js is the single entry point.
• package.json / package-lock.json define dependencies and startup scripts.
• config data: game.json, spotify.json.
• token store: tokens.txt.
• user-agent store: useragents.txt.
• start.bat is a convenience wrapper for Windows.
• LICENSE and README.md are documentation.
README for additional insights
• The README confirms the Node.js requirement, installation steps, the runtime behavior (token management, automatic reconnect, activity customization), and data formats.
Detail
• That index.js ties everything together.
• Event loop: WebSocket events → Activity Updater / Reconnect Handler.