#discord bot thing not working

1 messages · Page 1 of 1 (latest)

spare flameBOT
#

How to get support?

  • Search for similar posts first!
  • What have you tried already?
  • Where the error has happened?
  • What did you already try?
  • Provide logs!

Dont's (will get you muted):

  • Post some image or text without context.
  • Post a command you ran without the output,
  • Post just the output.
  • Reply with "i already did that" (See: How to get Support)
  • Post every word as a new message.
  • Ping Staff.
  • Post the same message in multiple channels.

Get Logs:
Laravel / CP.GG: tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
Installer: tail -n 100 /var/www/controlpanel/public/install/logs/installer.log | nc pteropaste.com 99
(NGINX: Are usually in /var/log/nginx/ and got the (sub)domain in the name. There are error and access logs)

keen sonnet
#

@delicate scarab

iron ivy
#

ok so cpgg does not make the bot online

#

and calling it a bot is also not correct, because its an app

#

that is only used by users to link their account to discord account and get force-joined by the application

delicate scarab
#

True

iron ivy
#

but

#

to force-join them, the applications's bot needs to be in the server which you will try to jointhe users

delicate scarab
#

Already done it

#

Another question if I turn it on at what point does it say verify your discord account?

#

/ asks for it

tribal trout
#

if you link it

#

on the profile page

iron ivy
#

and if force discord verify is enabled

delicate scarab
#

Than i get invalid Qauth2 redirect url

spare flameBOT
# delicate scarab Than i get invalid Qauth2 redirect url

It seems that you haven't set up discord 0auth correctly, but fear not, the docs come to the rescue! https://controlpanel.gg/docs/Installation/additional-configuration#discord-auth

Extra information about URL Formatting
Any URL saved in your settings should never end with a /slash; controlpanel adds this / automatically to any URL, adding an extra
/ will break the URL!

GOOD Example:
https://controlpanel.gg
BAD EXAMPLE:
https://controlpanel.gg/

When configuring discord-auth, we will automatically use your APP_URL to create the appropriate URLs needed for discord-0auth. Make sure your URLs are correct!

When using SSL-Encryption (https://) double-check that all your URLs start with https:// instead of http://

After editing the .env File you have to clear the Cache:

php artisan cache:clear
php artisan config:clear
iron ivy
#

^

delicate scarab
#

eh

#

and than it shoudl work?

#

Now the account does not get the role

iron ivy
delicate scarab
#

Haha yeah

delicate scarab
iron ivy
delicate scarab
#

Already checked and it is not

#

So yeah

#

Anything else

iron ivy
#

¯_(ツ)_/¯

#

does it have the intents?

delicate scarab
#

Which ones

#

All?

iron ivy
#

i don't remember

#

not all is required

#

but something with roles

#

oh and also, does the bot have manage roles perms?

delicate scarab
#

Yeah yeah ofc

iron ivy
#

¯_(ツ)_/¯

#

wait

delicate scarab
#

It works ;)

iron ivy
#

oh

#

ok

delicate scarab
#

Finally xD

iron ivy
#

how did it work tho?

delicate scarab
#

Very weird it just took like 30 seconds

iron ivy
#

hmmm

delicate scarab
#

Before it gave the role

iron ivy
#

alright

vale zealot
#

i have this same isue and idk whatt to do or what link i should put in the discord bot settings thing

#

i get this error {"redirect_uri": ["Not a well formed URL."]}

languid spindle
#

It is well described what to do

vale zealot
languid spindle
#

The error says that your URL is wrong at some point. Double check

vale zealot
#

i have nothing is wrong that i can tell

#

and how could i change the url that the link discord account button sends you to theres no option for that

languid spindle
#

Your APP_URL in the .env might be the issue. I suggest you to check it

vale zealot
#

does anything need to go here

languid spindle
#

Is this described in the docs?

vale zealot
#

theres 2 url spots tho

languid spindle
#

There is only one that is called redirect url

vale zealot
#

i have that one alredy

vale zealot
languid spindle
#

The file

vale zealot
#

how do i access that?

languid spindle
#

However youd like

vale zealot
#

through the vps?

#

is it in the blue app thing

languid spindle
#

Using any protocol/software that could. I suggest you to read into webhosting and server management a little bit to have enough know how

#

the file is called .env

vale zealot
#

i cant find it 😭

tribal trout
#

nano /var/www/controlpanel/.env

#

good lord icetoast xD

languid spindle
#

Now let's say he doesn't have debian or nano installed. This wouldn't help him. He needs to understand what this is about

vale zealot
vale zealot
tribal trout
#

but its there

vale zealot
#

Oh

tribal trout
tribal trout
# vale zealot Oh

files with a .before the name are "hidden" files. you wont see them using lsor ll

vale zealot
#

should the app_url be my petro panel or the controlpanel url

tribal trout
#

controlpanel

vale zealot
#

ahh it was the petro

#

so i set it to my controlpanel now i hope it works

#

{"redirect_uri": ["Not a well formed URL."]}

#

poopie

iron ridge
#

Read the docs carefully. Its explained step by step

vale zealot
#

i have

spare flameBOT
#

It seems that you haven't set up discord 0auth correctly, but fear not, the docs come to the rescue! https://controlpanel.gg/docs/Installation/additional-configuration#discord-auth

Extra information about URL Formatting
Any URL saved in your settings should never end with a /slash; controlpanel adds this / automatically to any URL, adding an extra
/ will break the URL!

GOOD Example:
https://controlpanel.gg
BAD EXAMPLE:
https://controlpanel.gg/

When configuring discord-auth, we will automatically use your APP_URL to create the appropriate URLs needed for discord-0auth. Make sure your URLs are correct!

When using SSL-Encryption (https://) double-check that all your URLs start with https:// instead of http://

After editing the .env File you have to clear the Cache:

php artisan cache:clear
php artisan config:clear
vale zealot
#

i habe done this alredy

iron ridge
#

Okay try again 🤷‍♂️

#

Your uri doesn't seem to have https in it

vale zealot
#

OH

iron ridge
#

Clearing cache not gone fix the url

vale zealot
iron ridge
#

Reading and understanding and double checking is key.

vale zealot
#

you fixed it

#

i love you omg ur the best

iron ridge
#

👍

vale zealot
#

no homo

vale zealot
vale zealot
tribal trout
#

make sure the bbot has permissions to do that

vale zealot
iron ridge
vale zealot
tribal trout
vale zealot
#

and autistic

iron ivy
#

??

#

why 1day is sad xD

vale zealot
#

if i had to guess

#

its cause he wants to be owner so he will battle avmg to the death

#

for ownership and glory

tribal trout
#

aah because of the crown

#

lol

#

ok

vale zealot
#

so ur the owner and hes not?

#

he just owns the discord server?

tribal trout
#

nah youre correct. AVMG created the project but we are both managing it now. he owns the discord aswell

#

i was just trolling

vale zealot
#

so yall are merging as one mistical being to manage this in perfect unity and companionship

#

so glorious

tribal trout
#

xDD

tribal trout
#

hahaha

vale zealot
#

i mak discord bot

#

i hear the growling of a tornado warning in my livving room origonating from a tv

#

i cant spell for the life of me

iron ridge