picklejason / valorantrankedpointsbot Goto Github PK
View Code? Open in Web Editor NEWDiscord bot that shows ranked point movement using Valorant's Private/In-Game API
Discord bot that shows ranked point movement using Valorant's Private/In-Game API
bot launch issue:
File "bot.py", line 141, in send_update
users = json.load(f)
File "C:\Users\Ruhkloos\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
File "C:\Users\Ruhkloos\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Users\Ruhkloos\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Ruhkloos\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Unhandled exception in internal background task 'relog'.
Traceback (most recent call last):
File "C:\Users\Ruhkloos\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\tasks\__init__.py", line 101, in _loop
await self.coro(*args, **kwargs)
File "bot.py", line 31, in relog
_, headers = await rs.run(USERNAME, PASSWORD)
File "E:\Programs\gitrepos\ValorantRankedPointsBot\RSO_AuthFlow.py", line 29, in run
data = pattern.findall(data['response']['parameters']['uri'])[0]
KeyError: 'response'
Traceback (most recent call last):
File "bot.py", line 215, in profile
embed = await create_embed(user.id)
File "bot.py", line 271, in create_embed
stats, rank_num, rank, RP, ELO, _ = await process_stats(discord_id, 3)
File "bot.py", line 260, in process_stats
after, diff, rank_nums, maps, arrows, start_times, curr_matches = await rs.get_stats(player_id, headers, num_matches)
TypeError: cannot unpack non-iterable NoneType object
2022-11-21 13:25:02 INFO discord.client logging in using static token
2022-11-21 13:25:03 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: 45c6860b551ecf3f7bce953e95a8ca32).
Bot connected.
Traceback (most recent call last):
File "/home/pi/valorantstats/ValorantRankedPointsBot/bot.py", line 111, in login
player_id, headers = await val.run(username, password)
File "/home/pi/valorantstats/ValorantRankedPointsBot/valorant_api.py", line 25, in run
data = await r.json()
File "/usr/local/lib/python3.9/dist-packages/aiohttp/client_reqrep.py", line 1104, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://auth.riotgames.com/api/v1/authorization')
is it http://localhost? or can you use a mongodb link?
deleted
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.