Need help finishing off Pajbot setup #308

Open
Crysikrend opened this Issue Jun 15, 2016 · 8 comments

Projects

None yet

3 participants

@Crysikrend

Hey there. After a painful session of setting it up, pajbot now seems sound and in Putty it shows "getting status, got status, running action on 4 and DONE RUNNING ACTION ON 4" repeatedly. My bot is in my twitch channel, however it looks like it's unresponsive to what anyone says. I have some questions as I am really really desperate to get this working.

  1. The website does not work and in the instructions I can't get past that point. Is it necessary (I'm not interested really?) and if so, will I need to buy a domain?
  2. How do I actually set up the bot - the main thing I want to have fun with is the emotes that pop up on stream. It doesn't seem clear what I need to CLR in order for them to appear. I'm also not sure about how I configure the bot in terms of tokens and points, my stream is just for fun for when I have something people want to watch, so I want to remove the cooldowns and token requirements so that anyone can participate.
  3. Is there anywhere where I can see all the different modules and what they do? I saw in the config file that there are modules you can turn on like 'Linefarming' and stuff, and I'm not sure what they are or if I want them. I'm not going to be using the bot to the fullest with chat moderation, but I do want it for chat participation to put stuff on stream!
  4. How do I disconnect from the server with Putty and yet have the bot continue working?

I can answer any questions as I am committed to getting this to work, I have wanted to for a long time and today I only just realised that I needed a server to run it on and I was stupid for trying to get it to work on my Windows machine.

Sorry if I sound bad at this - I tend to pick things up as I go but this bot is a work of art and I can't really tell if I'm just being stupid or whether I'm actually missing a step. I didn't use the quick installation as that didn't work so I went through it step by step and installed a load of stuff which allowed me to run the commands.

Thankyou!

@pajlada
Owner
pajlada commented Jun 15, 2016

Hey, just wanted to acknowledge that I read your post. I'll reply to your
questions properly tomorrow morning.
On Jun 15, 2016 22:02, "Ashley Smith" notifications@github.com wrote:

Hey there. After a painful session of setting it up, pajbot now seems
sound and in Putty it shows "getting status, got status, running action on
4 and DONE RUNNING ACTION ON 4" repeatedly. My bot is in my twitch channel,
however it looks like it's unresponsive to what anyone says. I have some
questions as I am really really desperate to get this working.

The website does not work and in the instructions I can't get past
that point. Is it necessary (I'm not interested really?) and if so, will I
need to buy a domain?
2.

How do I actually set up the bot - the main thing I want to have fun
with is the emotes that pop up on stream. It doesn't seem clear what I need
to CLR in order for them to appear. I'm also not sure about how I configure
the bot in terms of tokens and points, my stream is just for fun for when I
have something people want to watch, so I want to remove the cooldowns and
token requirements so that anyone can participate.
3.

Is there anywhere where I can see all the different modules and what
they do? I saw in the config file that there are modules you can turn on
like 'Linefarming' and stuff, and I'm not sure what they are or if I want
them. I'm not going to be using the bot to the fullest with chat
moderation, but I do want it for chat participation to put stuff on stream!
4.

How do I disconnect from the server with Putty and yet have the bot
continue working?

I can answer any questions as I am committed to getting this to work, I
have wanted to for a long time and today I only just realised that I needed
a server to run it on and I was stupid for trying to get it to work on my
Windows machine.

Sorry if I sound bad at this - I tend to pick things up as I go but this
bot is a work of art and I can't really tell if I'm just being stupid or
whether I'm actually missing a step. I didn't use the quick installation as
that didn't work so I went through it step by step and installed a load of
stuff which allowed me to run the commands.

Thankyou!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#308, or mute the thread
https://github.com/notifications/unsubscribe/AA6xrSrb-eFM5FziQHQlziEhamvbdxlRks5qMFpggaJpZM4I2vPY
.

@Crysikrend

pajlada you're the best. I have however, found the way forward! I didn't think to add the port onto the IP, scrutinising the video helped. I just paused every second and compared results and realised I didn't put that on. I'm now on the website and just realised that it is literally all setup for me - thankyou so much for everything you've done with this bot and I do hope to follow in your footsteps as I learn more:) I should be able to handle myself here on out!

@Crysikrend Crysikrend closed this Jun 15, 2016
@Crysikrend
Crysikrend commented Jun 16, 2016 edited

Ok, fallen into another problem that Im unsure about - only I can access the website via the IP address, but even though I've designated my domain (crysik.io) it doesn't seem to be working. How exactly is the website hosted? Does it use HTML files and if so where are they?

I'm sorry for seeming bad at this, I thought I had it but the domain bit is playing with me. Do I just type in crysik.io in the domain field in config?

@Crysikrend Crysikrend reopened this Jun 16, 2016
@pajlada
Owner
pajlada commented Jun 16, 2016

There's nothing in pajbot itself that would stop you from connecting to the webserver with the proper domain.

Step one is to make sure your domain is pointing to the right IP.
Step two you need to make sure that nginx lets the access through when accessed with the domain. (Like https://gist.github.com/Nacht123/c0ca93aa57d39cccee43 )

@pajlada
Owner
pajlada commented Jun 16, 2016

Nginx in this case is responsible for talking to the uwsgi socket that you'd start with uwsgi, and making sure you can host multiple websites on the same server. if this is not a problem for you, you could bypass nginx and just change the website port to 80 in the config (or through command line arguments to ./app.py)

@Crysikrend

I'm afraid I'm still not having much luck. Pinging my web address reports the correct IP so I believe it's the config file. I've changed in the config file to 80 as I just want it to work. Nginx seems to be the problem as it hasn't installed correctly - it says:

The following packages have unmet dependencies: nginx : Depends: nginx-full (>= 1.10.1-1~dotdeb+8.2) but it is not going to be installed or nginx-light (>= 1.10.1-1~dotdeb+8.2) but it is not going to be installed or nginx-extras (>= 1.10.1-1~dotdeb+8.2) but it is not going to be installed Depends: nginx-full (< 1.10.1-1~dotdeb+8.2.1~) but it is not going to be installed or nginx-light (< 1.10.1-1~dotdeb+8.2.1~) but it is not going to be installed or nginx-extras (< 1.10.1-1~dotdeb+8.2.1~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

Is there a way to not require any of this at all? I tried changing the port to 80 but I can still only access the website through port 2325 (by adding it to the end of the IP).

@dextermb
Contributor

@Crysikrend A quote might be easier to read

The following packages have unmet dependencies: nginx : Depends: nginx-full (>= 1.10.1-1dotdeb+8.2) but it is not going to be installed or nginx-light (>= 1.10.1-1dotdeb+8.2) but it is not going to be installed or nginx-extras (>= 1.10.1-1dotdeb+8.2) but it is not going to be installed Depends: nginx-full (< 1.10.1-1dotdeb+8.2.1~) but it is not going to be installed or nginx-light (< 1.10.1-1dotdeb+8.2.1) but it is not going to be installed or nginx-extras (< 1.10.1-1dotdeb+8.2.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

🎩 💼

@Crysikrend

Sorry to bring this all up again, but Nginx is now installed, it took me a while but I've found my way. When I access my domain online, it says "welcome to nginx", so something seems to have gone well.

If anyone is reading this, the problem was that I had nginx already installed, but it was an old version and needed uninstalling before installing the new version. I had no idea until I asked what version of nginx I had, and then it was clear that the problem was that it was conflicting with itself.

My next problem is Uwsgi, as I have, unfortunately, Ubuntu 14.04. I'm currently looking for an alternative to the guide you posted seeing as it doesn't work as noted. Is Uwsgi needed in order to run the website on my domain or is it optional even when making the website public?

Another note, is that I have not configured the nginx file as I am not exactly sure what I need to change (if anything). It's probably obvious, but this is my first time dabbling in so many new things, and so as you can tell I have to take my time. It's all fun though.

As a final question as I feel conscious annoying those who are kind enough to help, I am thinking of the website being a strand of the domain (so, crysik.io will open a homepage which I've designed, and then crysik.io/stream takes you to the homepage for the pajbot website? I don't just stream and I would love it if I could use my domain for my own website in conjunction with pajbot).

Thankyou all, and hope you're having a nice summer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment