TheOnlyArtz / Seday

A socket.io / Express / discord.js / RethinkDB app full example of how dashboards should work.
42 stars 12 forks source link

No tutorial for website side of things? #6

Open Xelbak opened 4 years ago

Xelbak commented 4 years ago

is there supposed to be a tutorial for setting up the website side of things? I have 0 idea what to do with all the files in the website folder, All the readme for website says is "TODO".

Xelbak commented 4 years ago

also both the links for "setting up" RethinkDB just take me to the top of the bot page. Not sure if that's unintended or not.

TheOnlyArtz commented 4 years ago

Hey! sorry for late reply, for some reason I don't get notifications on issues that are being opened. Regarding the web tutorial, I don't have much time to write a descriptive tutorial as I did with the bot's one, please let me know what exactly you would like to know and understand about the webapp.

This is the link to install RethinkDB https://rethinkdb.com/docs/install/ .

Huntero32 commented 4 years ago

Okay so I downloaded rethinkDB.exe and made a DB and a Table called Guilds I made the config for the website and entered my Discord Bot Client ID, Client Secret, Redirect URL, but what is the dash_secret and how would I get it?

TheOnlyArtz commented 4 years ago

The dash_secret is a unique string, usually heavily randomized. The README suggests a very nice package which can generate one. https://www.npmjs.com/package/uuid

taylorsamy commented 4 years ago

Hello,

When I try to run go to localhost:3000 I get SyntaxError: Unexpected identifier in Website\views\Login.ejs while compiling ejs

What am I doing wrong?

TheOnlyArtz commented 4 years ago

Hello,

When I try to run go to localhost:3000 I get SyntaxError: Unexpected identifier in Website\views\Login.ejs while compiling ejs

What am I doing wrong?

Hey! I would need more info to answer that, the stack trace would help

taylorsamy commented 4 years ago

Hello, When I try to run go to localhost:3000 I get SyntaxError: Unexpected identifier in Website\views\Login.ejs while compiling ejs What am I doing wrong?

Hey! I would need more info to answer that, the stack trace would help

The problem was it wasn't including the head file. However now when I run it the discord api rate limits it so its completely useless

TheOnlyArtz commented 4 years ago

Hello sir, I just download your project, setup everything, but I can't start the project, should I start the project like " node src/Website/main.js " or how ? when I start it like this " node src/Website/main.js " and go to localhost:3000 it redirect me to localhost:3000/Login and there show me this error: ' Error: Failed to lookup view "Login" in views directory "C:\Users\ampercz1\Desktop\seday\views" ' , also when I went to any website like /logout or /oauth/redirect it will show me this same error

Well that's because Node uses relative paths by default, change directory to src/website then boot the site from there. Same thing for the bot

TheOnlyArtz commented 4 years ago

Hello, When I try to run go to localhost:3000 I get SyntaxError: Unexpected identifier in Website\views\Login.ejs while compiling ejs What am I doing wrong?

Hey! I would need more info to answer that, the stack trace would help

The problem was it wasn't including the head file. However now when I run it the discord api rate limits it so its completely useless

Discord rate limit what? I can't help with the little amount of info you are providing.

TheOnlyArtz commented 4 years ago

Well that's because Node uses relative paths by default, change directory to src/website then boot the site from there. Same thing for the bot

Oh I see, now is working fine thanks, but is there any way how to see in dashboard servers only where I have administrator ? Or servers where the bot is, bacause when the bot is on server and I will change the prefix is kinda bad

Well it seems like I need to add these functionalities but it shouldn't be that hard to implement by yourself, you already have access to the guilds the bot is in and the guilds the connected user is in.

After all, Seday is just a Proof of Concept

taylorsamy commented 4 years ago

Hello, When I try to run go to localhost:3000 I get SyntaxError: Unexpected identifier in Website\views\Login.ejs while compiling ejs What am I doing wrong?

Hey! I would need more info to answer that, the stack trace would help

The problem was it wasn't including the head file. However now when I run it the discord api rate limits it so its completely useless

Discord rate limit what? I can't help with the little amount of info you are providing.

I said all there is, the discord api rate is rate limiting the requests. So all the requests return "you are being rate limited". I've decided to build my own dashboard from scratch as my code doesn't get rate limited.

TheOnlyArtz commented 4 years ago

Hello, When I try to run go to localhost:3000 I get SyntaxError: Unexpected identifier in Website\views\Login.ejs while compiling ejs What am I doing wrong?

Hey! I would need more info to answer that, the stack trace would help

The problem was it wasn't including the head file. However now when I run it the discord api rate limits it so its completely useless

Discord rate limit what? I can't help with the little amount of info you are providing.

I said all there is, the discord api rate is rate limiting the requests. So all the requests return "you are being rate limited". I've decided to build my own dashboard from scratch as my code doesn't get rate limited.

That never happened to anyone who used seday before, can you please tell me where exactly the limit occurs? Backend? Bot? Stack traces will help

taylorsamy commented 4 years ago

Hello, When I try to run go to localhost:3000 I get SyntaxError: Unexpected identifier in Website\views\Login.ejs while compiling ejs What am I doing wrong?

Hey! I would need more info to answer that, the stack trace would help

The problem was it wasn't including the head file. However now when I run it the discord api rate limits it so its completely useless

Discord rate limit what? I can't help with the little amount of info you are providing.

I said all there is, the discord api rate is rate limiting the requests. So all the requests return "you are being rate limited". I've decided to build my own dashboard from scratch as my code doesn't get rate limited.

That never happened to anyone who used seday before, can you please tell me where exactly the limit occurs? Backend? Bot? Stack traces will help

I don't have a stack trace because it doesn't crash. It occurs on the backend after I log in, when I click on any guild. The page just freezes because the api request returns nothing useful.

DDAHACKER commented 4 years ago

The dash_secret is a unique string, usually heavily randomized. The README suggests a very nice package which can generate one. https://www.npmjs.com/package/uuid

What do we store in the value of dash_secret. I am very confused on that.

TheOnlyArtz commented 4 years ago

The dash_secret is a unique string, usually heavily randomized. The README suggests a very nice package which can generate one. https://www.npmjs.com/package/uuid

What do we store in the value of dash_secret. I am very confused on that.

Generate a random string and that would be your dash_secret. Place it in the config