Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No tutorial for website side of things? #6

Open
Xelbak opened this issue Mar 5, 2020 · 15 comments
Open

No tutorial for website side of things? #6

Xelbak opened this issue Mar 5, 2020 · 15 comments

Comments

@Xelbak
Copy link

Xelbak commented Mar 5, 2020

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
Copy link
Author

Xelbak commented Mar 6, 2020

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

TheOnlyArtz commented May 24, 2020

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
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link

DDAHACKER commented May 28, 2020

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants