The-Studio-io / xDAI-Discord-bot

Repo for an xDAI Discord bot
10 stars 2 forks source link

"SyntaxError: Unexpected reserved word" when running with all dependences #8

Open AustinBZechar opened 5 years ago

AustinBZechar commented 5 years ago

hello,

I made sure to install everything needed via npm, but I get a "SyntaxError: Unexpected reserved word" at line 321 when running. Could I get some help?

Thanks Zephyr

rabTAI commented 5 years ago

Sorry on my phone, can you please paste that line (like 321) or provide more error info?

AustinBZechar commented 5 years ago

hello, here is the error info & the line.

SyntaxError: Unexpected reserved word at createScript (vm.js:53:10) at Object.runInThisContext (vm.js:95:10) at Module._compile (module.js:543:28) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:427:7) at startup (bootstrap_node.js:151:9)

line: for await (const member of members){//Loop throught all the members

Thanks Zephyr

mittalyashu commented 5 years ago

Seems like the problem is originating from line number https://github.com/The-Studio-io/xDAI-Discord-bot/blob/master/main.js#L321 🤔

mittalyashu commented 5 years ago

@NotZephyrDev Is your redis instance running?

If you running this locally, trying commenting out these lines of code and then try again.

AustinBZechar commented 5 years ago

hello,

I think it is. I'll try to comment those lines out

Thanks zephyr

davecraige commented 5 years ago

@NotZephyrDev thanks for joining us and making an issue 😀🙌

mittalyashu commented 5 years ago

@NotZephyrDev Can you confirm that the problem you was facing is resolved?

AustinBZechar commented 5 years ago

hello, sorry I didn't have time to test but I will test now

AustinBZechar commented 5 years ago

hello,

now I get this error code.

}); ^ SyntaxError: Unexpected token ) at createScript (vm.js:53:10) at Object.runInThisContext (vm.js:95:10) at Module._compile (module.js:543:28) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:427:7) at startup (bootstrap_node.js:151:9)

Thanks Austin

mittalyashu commented 5 years ago

@rabTAI Can you take a look at this?