Skip to content

SafeQuit

dannysmc95 edited this page Feb 24, 2022 · 2 revisions

Safe quit is a bit of code added into the server, that prevents using normal close methods while attached to the standard in/out/err pipes. The way to use this, is when you want to quit the application, the application will notify you once it's ready, this usually happens as soon as it starts up and adds a message into the log output.

To close the application, you can press q this will run and await all service stop commands, this allows services to run and finish clean-up methods, for example the Discord plugin will unregister all the commands from the guilds it's in, this allows it to keep clean, and the Turbo framework will also kill all active fibres.

Safe quit can be disabled on application start-up for debugging issues, you can add the following node environment variable when calling the application:

DISABLE_READLINE=1 yarn start

Features

Plugins

Future Plans

Resources

Clone this wiki locally