TheMajorBBS / GHost2

Remote door server for WG/Major BBS.
GNU General Public License v3.0
3 stars 0 forks source link

Add Fixed Event: Startup and Shutdown #12

Closed BadOPCode closed 3 years ago

BadOPCode commented 3 years ago

A simple event system that calls either .sh or .cmd depending on the OS. Use just a simple native runner that searches for the script in the path ./fixed-events/ If it finds the script it than executes it blocking. This will be used to set and destroy GHost environment and is needed before allowing users to call doors. Forethought should be taken to future GHost Protocol and how these events could be GHost events. To put it another way, we may save ourselves in some future steps if we wrapper the events as classes instead of loose functions now.