Start warframe-irc-server automatically when starting server (optional) #1293

Closed
opened 2025-03-23 03:13:41 -07:00 by Animan8000 · 6 comments
Contributor

Not sure if a config file option makes sense or if the bat file checks whether a irc subfolder with the binary exists.

Not sure if a config file option makes sense or if the bat file checks whether a `irc` subfolder with the binary exists.
Owner

These are different pieces of software.

These are different pieces of software.
Author
Contributor

I meant with that, that something like the bat file can start it automatically, if said folder and file exist. That approach doesn't need anything special and the bat file should be able to do it just fine

I meant with that, that something like the bat file can start it automatically, if said folder and file exist. That approach doesn't need anything special and the bat file should be able to do it just fine
Owner

The bat file can make no assumption about where the IRC server is and if you even want it to be started, e.g. you need to update it considerably less often.

The bat file can make no assumption about where the IRC server is and if you even want it to be started, e.g. you need to update it considerably less often.
Author
Contributor

The bat file can make no assumption about where the IRC server is and if you even want it to be started, e.g. you need to update it considerably less often.

I know, the path would sorta be hardcoded and the user may need to manually update it (the path to the IRC could be mentioned in the setup guide perhaps). Still, it gives the convenience to the user that the bat starts it for them every time, and they don't need to manually double click the exe themselves every time. A small example that I was thinking of (lemme know if I should make a PR or not):

@echo off

echo Updating SpaceNinjaServer...
git config remote.origin.url https://openwf.io/SpaceNinjaServer.git
git fetch --prune
git reset --hard origin/main

if exist static\data\0\ (
	echo Updating stripped assets...
	cd static\data\0\
	git pull
	cd ..\..\..\
)

if exist irc\warframe-irc-server.exe (
	echo Starting IRC Server...
	start irc\warframe-irc-server.exe
)

echo Updating dependencies...
call npm i --omit=dev

call npm run build
if %errorlevel% == 0 (
	call npm run start
	echo SpaceNinjaServer seems to have crashed.
)
:a
pause > nul
goto a
> The bat file can make no assumption about where the IRC server is and if you even want it to be started, e.g. you need to update it considerably less often. I know, the path would sorta be hardcoded and the user may need to manually update it (the path to the IRC could be mentioned in the setup guide perhaps). Still, it gives the convenience to the user that the bat starts it for them every time, and they don't need to manually double click the exe themselves every time. A small example that I was thinking of (lemme know if I should make a PR or not): ```Batch @echo off echo Updating SpaceNinjaServer... git config remote.origin.url https://openwf.io/SpaceNinjaServer.git git fetch --prune git reset --hard origin/main if exist static\data\0\ ( echo Updating stripped assets... cd static\data\0\ git pull cd ..\..\..\ ) if exist irc\warframe-irc-server.exe ( echo Starting IRC Server... start irc\warframe-irc-server.exe ) echo Updating dependencies... call npm i --omit=dev call npm run build if %errorlevel% == 0 ( call npm run start echo SpaceNinjaServer seems to have crashed. ) :a pause > nul goto a ```
Owner

Or you can just add a shortcut to the IRC server in %appdata%\Microsoft\Windows\Start Menu\Programs\Startup. Maybe need to write a little powershell to make it not show up the console window.

Or you can just add a shortcut to the IRC server in `%appdata%\Microsoft\Windows\Start Menu\Programs\Startup`. Maybe need to write a little powershell to make it not show up the console window.
Author
Contributor

Or you can just add a shortcut to the IRC server in %appdata%\Microsoft\Windows\Start Menu\Programs\Startup. Maybe need to write a little powershell to make it not show up the console window.

I don't have any issue if the IRC console window shows up. Then again, lmk if I should make a PR, to have this optionally starting by the bat. Otherwise, we can leave it at that.

> Or you can just add a shortcut to the IRC server in `%appdata%\Microsoft\Windows\Start Menu\Programs\Startup`. Maybe need to write a little powershell to make it not show up the console window. I don't have any issue if the IRC console window shows up. Then again, lmk if I should make a PR, to have this optionally starting by the bat. Otherwise, we can leave it at that.
Sign in to join this conversation.
No description provided.