staciax / valorant-discord-bot

A discord bot with valorant api.
GNU General Public License v3.0
338 stars 200 forks source link

Missing Access HOW TO FIX? #21

Closed codsec closed 2 years ago

codsec commented 2 years ago

Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\USER-PC\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 382, in _run_event await coro(*args, **kwargs) File "C:\Users\USER-PC\Downloads\ValorantStoreChecker-discord-bot-master\ValorantStoreChecker-discord-bot-master\bot.py", line 59, in on_message await bot.register_commands(commands=command, guild_id=message.guild.id, force=True) File "C:\Users\USER-PC\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\bot.py", line 471, in register_commands registered = await register("bulk", data) File "C:\Users\USER-PC\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 351, in request raise Forbidden(response, data) discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access

everything seems correct but for some reason when i put -setup global or -setup guild it happens

staciax commented 2 years ago

image

codsec commented 2 years ago

HTTPSConnectionPool(host='pd.br.a.pvp.net', port=443): Max retries exceeded with url: /store/v1/offers/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002B0B40C9210>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

im getting this error now...

@staciax

staciax commented 2 years ago

vs code right?

codsec commented 2 years ago

vs code right?

image image

codsec commented 2 years ago

vs code right?

wdym?

staciax commented 2 years ago

I'm not sure what caused it. After riot added the firewall, the problem kept coming.

but it works with normal host

codsec commented 2 years ago

there is something that i can do to fix it? because nothing are working for me, all commands give me almost the same error

like this when i check the store: image

staciax commented 2 years ago

If I switch to aiohttp it might work, but I have to modify most of the code.

Do you have a host for bots?

codsec commented 2 years ago

Well i have a VPS, if i use will work? or u can recommend me a host that will work

staciax commented 2 years ago

I think a normal host should work fine.

codsec commented 2 years ago

I think a normal host should work fine.

can u recommend me one? looks like mine is not working

staciax commented 2 years ago

Many of my users use heroku, it works fine and free (550hours/mouth)

Naru2203 commented 2 years ago

Many of my users use heroku, it works fine and free (550hours/mouth)

how to fix it staciax image

codsec commented 2 years ago

Many of my users use heroku, it works fine and free (550hours/mouth)

same error even with Heroku

image

codsec commented 2 years ago

@staciax anything else that i can try?

staciax commented 2 years ago

Many of my users use heroku, it works fine and free (550hours/mouth)

how to fix it staciax

image

Can you try in vps?

staciax commented 2 years ago

Many of my users use heroku, it works fine and free (550hours/mouth)

same error even with Heroku

image

Do other commands work normally?

codsec commented 2 years ago

Do other commands work normally?

+/- login works and nightmarked shows "._. NO NIGHT MARKET" others one's just give me same erros basically

staciax commented 2 years ago

nightmarket comes April 7th

codsec commented 2 years ago

nightmarket comes April 7th

yeah but i cant check my battlepass or store anyways give me error's

staciax commented 2 years ago

https://github.com/staciax/ValorantStoreChecker-discord-bot/blob/56b9e3330aaee317f3488398f146ac38263ca222/utils/auth.py#L184

database[self.user_id]['region'] = 'na'

https://github.com/staciax/ValorantStoreChecker-discord-bot/blob/56b9e3330aaee317f3488398f146ac38263ca222/utils/auth.py#L292

region = 'na'

br region is used as na.

codsec commented 2 years ago

https://github.com/staciax/ValorantStoreChecker-discord-bot/blob/56b9e3330aaee317f3488398f146ac38263ca222/utils/auth.py#L184

database[self.user_id]['region'] = 'na'

https://github.com/staciax/ValorantStoreChecker-discord-bot/blob/56b9e3330aaee317f3488398f146ac38263ca222/utils/auth.py#L292

region = 'na'

br region is used as na.

so should i change that? (and how exacly, im not mutch into py tbh)

staciax commented 2 years ago

yeah you should change that

codsec commented 2 years ago

yeah you should change that

well now store is working but login is failing "The app did not respond"

staciax commented 2 years ago

wait 1 min or type -setup guild again

codsec commented 2 years ago

now is fully working 100% thanks(u can close), btw u dont pretend to make something to check matches/rank profile etc?

edit: btw u have the emojis from discord?

staciax commented 2 years ago

you're welcome

I have plans to do so. but not sure when. now i'm sick Not sure if it's covid or not. ;-;)

codsec commented 2 years ago

you're welcome

I have plans to do so. but not sure when. now i'm sick Not sure if it's covid or not. ;-;)

OK i hope u get better sz, u have the emojis that u used? i would like to have them too xd

staciax commented 2 years ago

emoji not loading?

staciax commented 2 years ago

I got server my emoji https://discord.gg/kcDKpjuB

codsec commented 2 years ago

emoji not loading?

no, and i would like to change this message from just show to me, i would like everyone on my discord to be able to see the store message, how do i change it?

image

staciax commented 2 years ago

emoji not loading?

no, and i would like to change this message from just show to me, i would like everyone on my discord to be able to see the store message, how do i change it?

image

if emoji bot not loading pls check hereimage

codsec commented 2 years ago

oh thx again, working fine now, and about to show the message to everyone? what should i change to show that?

staciax commented 2 years ago

/login and /store without user,pass

codsec commented 2 years ago

/login and /store without user,pass

ok thanks, one last thing before u close it, there is a easy way to change missions and weapons name to portuguese?

staciax commented 2 years ago

file utils/cache.py

change url

line 161 : https://valorant-api.com/v1/weapons/skins?language=pt-BR

line 201 : https://valorant-api.com/v1/missions?language=pt-BR

and delete data folder and run bot again

staciax commented 2 years ago

can i close?