Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Add runtime mode option for switching between local and replit modes#242

Merged
notsniped merged 3 commits intomainfrom
add-switching-between-local-and-replit-modes
Mar 4, 2023
Merged

Add runtime mode option for switching between local and replit modes#242
notsniped merged 3 commits intomainfrom
add-switching-between-local-and-replit-modes

Conversation

@notsniped
Copy link
Member

Runtime mode configuration

You can switch from local to replit or vice-versa in the runtime configuration by modifying the value in the replit key in the runtimeconfig.json file.

true enables replit mode (storing bot token in replit environment variable) and false uses the token provided in the runtimeconfig.json file. The environment variable name for the bot token is TOKEN.
If replit runtime mode is enabled, then the token value in runtimeconfig.json can be left empty. But if it is disabled, a token will be needed in the configuration file.

Automatic detection may come sometime in the future.

@notsniped notsniped added enhancement New feature or request priority:high type:libraries Changes to the imports/structure of imports or internal libraries area:main Changes to the main functioning code type:maintenance Changes to the files needed to config/debug/maintain the client labels Mar 4, 2023
@notsniped notsniped self-assigned this Mar 4, 2023
@notsniped notsniped merged commit b0e0074 into main Mar 4, 2023
@notsniped notsniped deleted the add-switching-between-local-and-replit-modes branch March 4, 2023 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area:main Changes to the main functioning code enhancement New feature or request priority:high size/S type:libraries Changes to the imports/structure of imports or internal libraries type:maintenance Changes to the files needed to config/debug/maintain the client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant