#Setup dashboard on replit

1 messages · Page 1 of 1 (latest)

crude locust
#

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

misty tiger
crude locust
#

umm idk i never i use replit milkshrugidk

misty tiger
crude locust
#

that's only for the bot not for the dashboard

misty tiger
#

alr ty

#

i am getting this error all of a sudden now

crude locust
#

unexpected indent

#

you have added some extra tab in the code

misty tiger
#

infact no, i just made a new repl

#

i didnt add no extra tab

#

i can give you the repl invite

#

if you want

crude locust
#

but this is what the error said

misty tiger
#

but i didnt add anything

#

;-;

#

i just made a new fork

crude locust
#

you can copy the code from the github to your replit

misty tiger
#

not working

#

still

crude locust
#

Try to re upload the code

misty tiger
#

done

#

still no worky

rocky fable
#

try to deleet space

misty tiger
#

Already did

#

Didn't work either way

tranquil seal
#

i only got this error when i try to execute the program

"pip": executable file not found in $PATH

tranquil seal
#

55555

rocky fable
#

am fix successfully

rocky fable
#
    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
crude locust
#

install order version of werkzeug

#

install version

#

2.2.2

rocky fable
#

ok

#

@misty tiger I've solved it.

#

Now Can use

misty tiger
#

😭🙏

#

now just gotta figure out how to run this damn dashboard over on replit

misty tiger
tranquil seal
#

you can another replit project for the dashboard

misty tiger
rocky fable
tranquil seal
#

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

rocky fable
#

I did it myself. lol

tranquil seal
#

yea but you left the page it will kills the dashboard

rocky fable
#

am know am test

tranquil seal
#

i see haha

misty tiger
misty tiger
misty tiger
rocky fable
misty tiger
#

huh it stills says it isnt able to connect for some reason ahh

crude locust
#

make sure you are using lavalink 4.0 or above

misty tiger
#

wait a bird, so this node thing is for the lavalink server?

crude locust
#

yea

misty tiger
#

;-;

#

bru

#

i thou

#

okay

#

ty

crude locust
#

have you checked our doc and video?

misty tiger
#

😭

rocky fable
#

Where can I host lavalink?

crude locust
misty tiger
misty tiger
#

i use this for testing

crude locust
misty tiger
rocky fable
#

I want to host it myself.

rocky fable
crude locust
#

you can change the redirects url to your replit url

misty tiger
rocky fable
#

chance 0.0.0.0

#

am chance

misty tiger
crude locust
#

it should be https

misty tiger
#

ah aight

misty tiger
rocky fable
#

chance REDIRECT_URI

crude locust
#

yea also you have to the redirect_url in webapp.py

crude locust
misty tiger
rocky fable
#

try again

misty tiger
rocky fable
#

pls copy CLIENT_SECRET_ID again

crude locust
#

the client_id and client_secret_id have to be correct in your .env

misty tiger
#

they are, ill correct them once again

rocky fable
#

redirect_uri check again

#

it not correct

#

chance you redirect_uri in bot again and try again

crude locust
#

have you restarted your dashboard after changing the settings?

rocky fable
crude locust
#

no invalid Oath2 redirect_uri means CLIENT_SECRET_ID or client_id is not correct

misty tiger
#

i just pasted it again

misty tiger
misty tiger
rocky fable
#

check CLIENT_SECRET_ID

misty tiger
#

ye ive just replaced it

rocky fable
#

i suggest reset and chance CLIENT_SECRET_ID

crude locust
#

you are missing /callback in the redirect url

#

the redirect url format should be http://your_domain.com/callback

rocky fable
misty tiger
crude locust
#

0.0.0.0 is a local ip

#

it didn't linked back to replit

misty tiger
#

ugh wtf is this redirecting to 0.0.0.0:5000

crude locust
#

You haven’t restarted the dashboard

misty tiger
#

i did ;-;

#

ill do it again

crude locust
#

Maybe soul didn’t still running the program

misty tiger
#

ayy

#

it worked

#

but

#

after tapping authorize

#

oh

#

i see

#

ive added :80 to the redirect url

#

is working now

crude locust
misty tiger
#

also ty too @rocky fable

rocky fable
misty tiger
#

so like, how do i select a server in this now

rocky fable
#

connect vc

#

and set bot join vc

misty tiger
#

oh!

#

tysm

#

yay it works

crude locust
#

Make sure your bot can connect to your dashboard first

crude locust
#

That’s good

rocky fable
#

I hope you have fun listening to the song.

misty tiger
#

😭 tysm

misty tiger
#

ahhh

rocky fable
#

Fixx space

misty tiger
#

ahh

crude locust
#

That’s why I don’t use replit

rocky fable
#

it bug

misty tiger
#

it aint working still

rocky fable
#

try use bot-hostting

#

it better

#

fix space all

#

replit, it's confusing.

misty tiger
#

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

crude locust
#

unexpected indent

#

try not to edit code on replit

misty tiger
#

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

crude locust
#

yea replit is so bad

misty tiger
#

yeah bought the hosting!

misty tiger
#

my mongo url is right tho

#

it works in replit

crude locust
#

🤔 do you allow all IPs to access your mongodb?

misty tiger
#

yuh

#

or how else would the repl be able to connect

crude locust
#

in mongodb, you can specify which IP can access the database

misty tiger
#

i've allowed all the ips to connect :p

crude locust
#

then you should ask your hosting provider

#

the error was Name or service not known

misty tiger
#

oh wait

#

does having only 1 port

#

alloted

#

affect it?

crude locust
#

not affected

misty tiger
#

the env is good enough?

crude locust
#

yes?

rocky fable