starwolfy / steam-ts

Steam integration for TeamSpeak 3
MIT License
62 stars 9 forks source link

Auto Start-up #13

Closed ZeroTaps closed 7 years ago

ZeroTaps commented 7 years ago

Hi,

New to using Linux was wondering how could I make the Steam Verify Bot start up with Linux

did try using #! bin/bash cd /my bot location/ ./$npm start

Any help is appreciated :)

starwolfy commented 7 years ago

Running the following script on startup should help you out.

#!/bin/bash
cd /botLocation
npm start
ZeroTaps commented 7 years ago

how do I add a delay to the start of this task

ZeroTaps commented 7 years ago

Cause the Steam Bot joins the TeamSpeak but doesn't start up the steam user maybe a delay might help I'm not sure

starwolfy commented 7 years ago

Beware that I have limited knowledge on bash scripting, but I believe the following should work:

#!/bin/bash
wait 15
cd /botLocation
npm start

This would make the script wait 15 seconds before executing the commands below it.

(I am closing this issue for now as it isn't really an issue with my application itself, but feel free to continue replying here.)