Closed TechnoWolfEver closed 2 years ago
I have not tried it yet, but as it can use npm, you should be able to just install node.js in linux and install the npm version.
The guide to install via npm is on the main page.
npm
Clone the repo to your PC https://github.com/Zaarrg/TTVDropBot
Install NPM packages
npm install
Run it
node index.js
@TechnoWolfEver Compiled the bot for linux-x64. Dont have any pc to test it on so i dont know if its gonna work. Would be nice if you can check it. There could be some code only compatible with windows which will cause errors on linux so u would need to try it out cant check sadly. Updated the 1.3.3.1 Release.
I tried to run that file in linux and I think my linux config did not support it.
Currently trying npm and that appears like it will work once I solve the issue I have.
I use Linux headless without a GUI. However the intial browser window opens non headless. Does this require to run with the gui or can the intial window also run as headless without issue?
Error I get is :
(node:28788) UnhandledPromiseRejectionWarning: Error: Failed to launch the brows er process! [28799:28799:0718/192418.444668:ERROR:browser_main_loop.cc(1386)] Unable to open X display.
Ok I found can change it to headless in LoginPage.js
Just need to get my default data directory working and this will likely work.
I got the npm version working fine in Linux, but it just refuses to work with profile directory, it always asks me to login, so I cannot do it with a headless (no gui) linux.
This is my settings file, executable path is working, user profile is not :
Also because I am having to login and i am using a Virtual machine remotely it lags a bit and just takes too long 95% of the time and times out as below :
Appears it "looks" like it is working but it is not as below progress does not increase, but it does manage to get the current progress correctly as below :
I will try running it in headless false mode.
Issue is my VM cannot run the videos as below. I will have to try mess with this more tomorrow, I guess this however does make it impossible to work in headless mode in Linux though. :
so today i woke up seeing whats happening here, thanks for the help and afford. so i installed npm, node and so on and tried starting it i dont get it starting since i'm opening it on a guiless Linux server.
Yeah, Gui less does not seem to be possible. Especially sicne the user profile does not want to work.
But even with Gui, using a VM I cannot seem to get credit as the video wont play.
Yeah, Gui less does not seem to be possible. Especially sicne the user profile does not want to work.
yea servers dont got any browsers installed guess thats the problem.
I installed the browser, but issue is it cant pull the profile directory info so you have to login which you cant do without a gui.
Even if the profile directory worked however the video then is refusing to play in a virtual machine for me which stops the progress going up.
After more testing I think the user profile not working is an issue with the program not chromium or Linux.
If I do following command it works fine now and is logged into Twitch :
chromium-browser --user-data-dir="/home/rustdrops/chomeprofile/" http://www.twitch.tv
However when I add same user data directory into TTVDropBot it just opens Twitch login everytime.
Is it possible the TTVDropBot does some form of check on the profile directory and is determining the Linux path is incorrect and forcing login?
Seems this may be the case as entering manually not using settings.json I get this error :
i keep getting this error while trying to run the bot on a raspberry pi anyone have any idea what could be the cause of this?
Not Active anymore, reopen if error still occurs
Hey, would be a cool feature if you make an linux version for it, easy to make (I guess?!) since many people got a little linux server to run a few things its cool to run the script there so you dont need your pc to be online.
with kind regards