destruc7i0n / shulker

A Discord to Vanilla Minecraft Chat Gateway
ISC License
135 stars 47 forks source link

What have I done... #8

Closed Keaft closed 7 years ago

Keaft commented 8 years ago

I do:

git clone https://github.com/destruc7i0n/shulker.git cd shulker npm install

http://pastebin.com/yHsW9mSG

destruc7i0n commented 8 years ago

Weird... A new build proved nothing should have went wrong...

https://travis-ci.org/destruc7i0n/shulker

Can you provide more info about your environment etc?

Keaft commented 8 years ago

Linux jhserv1 3.16.0-57-generic #77~14.04.1-Ubuntu SMP Thu Dec 17 23:20:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

name@jhserv1:~/destruc7i0n/shulker$ npm --version 1.3.10

At some point I looked up an error code and installed node-legacy then removed it and tried to update node.

Very possible that ubuntu 14.04 doesn't apt-get an updated node: npm WARN engine discord.js@5.3.2: wanted: {"node":">=0.12.7"} (current: {"node":"v0.10.25","npm":"1.3.10"})

Full install log: http://pastebin.com/9HzcHJBp

Edit: going to try turning it off and on again... needs to update the kernel anywhosels and errors after that: http://pastebin.com/w89P1QKX

destruc7i0n commented 8 years ago

I'd recommend trying to reinstall node, the version that worked for me was v0.12.7 (at the least).

Use nvm for easier installation :)

Keaft commented 8 years ago

Worked like a charm: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

Keaft commented 8 years ago

Almost worked like a charm. Now this:

Edit: this time with more pastebin What shulker has to say: http://pastebin.com/A3fLbU20

What Curl has to say: http://pastebin.com/XJWryUg7

s-thom commented 8 years ago

You will need to edit your config.json.

There's a line that looks like

"REGEX_MATCH_CHAT_MC": "\\[Server thread/INFO\\]: <(.*)> (.*)",

You will need to change it to something like

"REGEX_MATCH_CHAT_MC": "\\[Async Chat Thread - #\\d/INFO\\]: <(.*)> (.*)",

Keaft commented 8 years ago

Quote: "Some people, when confronted with a problem, think 'I know, I'll use regular expressions.' Now they have two problems."

I love that quote. :D Thank you for taking time out of your life to get that regex set up. Works like a charm.

Keaft commented 8 years ago

Sometimes there are 2 digits before info. I hope there wont be 3 digits. "REGEX_MATCH_CHATMC": "[Async Chat Thread - #\d{1,2}/INFO]: <(.)> (._)",

Keaft commented 8 years ago

Sometimes there are 3 digits before info: \\[Async Chat Thread - #\\d{1,3}/INFO\\]: <(.*)> (.*)

Are the thread counts just steadily increasing the longer the server is on? I'm not sure if it is incrimenting through a restart or not.

s-thom commented 8 years ago

Not sure, but you may as well change the regex to

\\[Async Chat Thread - #\\d+/INFO\\]: <(.*)> (.*)

which will accept any number of at least one digits, not just 1-3. I should have said that earlier, but I didn't think we'd end up in triple digits.

Edit: Fixed incorrect statement