#Setup dashboard on replit
1 messages · Page 1 of 1 (latest)
you need another process for the dashboard
in the bot it only started the ipc_server
you have to run webapp.py in the web folder to start the dashboard
i am using replit, any idea on how to do that in it?
umm idk i never i use replit 
you have a literal button on your github page to run this project on replit :PP
that's only for the bot not for the dashboard
infact no, i just made a new repl
i didnt add no extra tab
i can give you the repl invite
if you want
replit
Build and deploy software collaboratively with the power of AI without spending a second on setup.
but i didnt add anything
;-;
i just made a new fork
you can copy the code from the github to your replit
did ;-;
not working
still
Try to re upload the code
i only got this error when i try to execute the program
"pip": executable file not found in $PATH
ok am fix
555
55555
am fix successfully
from flask import Flask, redirect, url_for, session, request, render_template, abort, Response, stream_with_context
File "/home/runner/Vocard-1/.pythonlibs/lib/python3.10/site-packages/flask/__init__.py", line 5, in <module>
from .app import Flask as Flask
File "/home/runner/Vocard-1/.pythonlibs/lib/python3.10/site-packages/flask/app.py", line 30, in <module>
from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/runner/Vocard-1/.pythonlibs/lib/python3.10/site-packages/werkzeug/urls.py)```
@crude locust How fix
You got any idea? @tranquil seal :p
you can another replit project for the dashboard
So.., i make another fork of the project and then just run webapp there?
yea
but you have to pass host and port into IPC_CLIENT in webapp.py
wait it seem you can run the dashboard in the shell
lol
I did it myself. lol
yea but you left the page it will kills the dashboard
am know am test
i see haha
btw, would it be a problem if i use your vocard source with a few customizations and put it into a diff bot's music system? ( would credit you ofc )
ty for your help btw
sure
alrighty.
Np
huh it stills says it isnt able to connect for some reason ahh
where you hosted your lavalink server?
make sure you are using lavalink 4.0 or above
oh wait
wait a bird, so this node thing is for the lavalink server?
yea
😭
Where can I host lavalink?
umm any server that can run java application
yey
Without SSL should work out of the box!
i use this for testing

haha!
I want to host it myself.
you can change the redirects url to your replit url
ive already setted it
it should be https
ah aight
btw what is the ipc server thing?
chance REDIRECT_URI
it connects the bot and the dashboard
ah aight
try again
oof
pls copy CLIENT_SECRET_ID again
the client_id and client_secret_id have to be correct in your .env
they are, ill correct them once again
redirect_uri check again
it not correct
chance you redirect_uri in bot again and try again
have you restarted your dashboard after changing the settings?
it redirect_uri not corrcet
no invalid Oath2 redirect_uri means CLIENT_SECRET_ID or client_id is not correct
i just pasted it again
this link it work
works by just authorizing but doesnt redirect
check CLIENT_SECRET_ID
ye ive just replaced it
i suggest reset and chance CLIENT_SECRET_ID
you are missing /callback in the redirect url
the redirect url format should be http://your_domain.com/callback
i just did again
You haven’t restarted the dashboard
Maybe soul didn’t still running the program
ayy
it worked
but
after tapping authorize
oh
i see
ive added :80 to the redirect url
is working now

also ty too @rocky fable
Np
so like, how do i select a server in this now
Make sure your bot can connect to your dashboard first
ye it has
That’s good
I hope you have fun listening to the song.
😭 tysm
Fixx space
ahh
That’s why I don’t use replit
it bug
Traceback (most recent call last):
File "/home/runner/Vocard-1/.pythonlibs/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 935, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1017, in get_code
File "<frozen importlib._bootstrap_external>", line 947, in source_to_code
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/runner/Vocard-1/cogs/playlist.py", line 1
"""MIT License
IndentationError: unexpected indent
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/runner/Vocard-1/main.py", line 76, in setup_hook
await self.load_extension(f"cogs.{module[:-3]}")
File "/home/runner/Vocard-1/.pythonlibs/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 1013, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/runner/Vocard-1/.pythonlibs/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 938, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.playlist' raised an error: IndentationError: unexpected indent (playlist.py, line 1)
gettin this error
;-;
it happens when
i edit the code
outside of replit
and paste it in it
and sometimes it happens on its own
replit sucks
ill buy hosting ig
yea replit is so bad
;-;
my mongo url is right tho
it works in replit
🤔 do you allow all IPs to access your mongodb?
in mongodb, you can specify which IP can access the database
i've allowed all the ips to connect :p
not affected
the env is good enough?
yes?
yes is correct hahahah
