Sleepydragn1 / twitchAFK

SlimerJS script for idling a Twitch channel.
Mozilla Public License 2.0
38 stars 10 forks source link

Easy Problem #18

Open SpizzySloth opened 3 years ago

SpizzySloth commented 3 years ago

New to scripting, I need a crash course in learning how to develop an understanding of how from start to finish i am supposed to start this command i have followed the steps and i am stuck at the point to where i don't know what to put into command prompt to start it i am on windows let me know if you have any further questions.

Sleepydragn1 commented 3 years ago

Presuming that you did all of the steps in the Setup section, the section that you'll want to look at to start the script is the Command-line Syntax section.

The syntax for running the command is: slimerjs --headless -P [SlimerJS profile name] twitchAFK.js [Twitch channel]

So, in the command prompt, you'll want to type out that command, while filling out the profile name you specified in Step 9 instead of [SlimerJS profile name], and you'll want to type out the name of the Twitch channel you want to AFK in the place of [Twitch channel].

So, if the profile name you setup is "twitchAFK" and the channel you want to AFK at is "https://www.twitch.tv/sleepydragn1" you'd type out this command: slimerjs --headless -P twitchAFK twitchAFK.js sleepydragn1

Since you seem to be new to this, I imagine that there could be some steps that you may have missed or misunderstood, so you might have further issues. Try the above, and tell me if anything goes wrong and we'll go from there.

SpizzySloth commented 3 years ago

Hi thanks for the response when i type in the command you told me to command prompt it says that slimerjs is not reconigized as for the steps i got up to step 9 to create a profile i am stuck here as the pre-command to make a profile slimerjs wasn't recognized by my command prompt do you have any idea what i am doing wrong?

Sleepydragn1 commented 3 years ago

If slimerjs isn't recognized as a command, you probably haven't set the path variable correctly. Follow this guide and add the folder that SlimerJS is located in to your system path.

So, for example, if slimerjs.bat and all of those other files are located in "C:\Tools\SlimerJS", then you'll need to add "C:\Tools\SlimerJS" to your system path variable to be able to use it.

If all else fails, you can also use the full path in lieu of messing with the path variable. So, for example, instead of running: slimerjs --headless -P twitchAFK twitchAFK.js sleepydragn1

You could run: "C:\Tools\SlimerJS\slimerjs" --headless -P twitchAFK twitchAFK.js sleepydragn1

SpizzySloth commented 3 years ago

I am still very confused is their anyway we can go on anydesk or something that you can help me one on one or something of that nature if you have the time?

Sleepydragn1 commented 3 years ago

Sorry it took so long to get back to you — unfortunately I was busy with some other things at the time. Regardless, I would rather not do a remote desktop session both because I don't fully feel comfortable with it, and also because I'd rather create a solution that works for multiple people rather than just one person.

Instead, I've created a video that goes over setting up the script. Hopefully by watching it and following along, it'll make the setup process a little bit easier to digest.