Giter Site home page Giter Site logo

picklejason / valorantrankedpointsbot Goto Github PK

View Code? Open in Web Editor NEW
54.0 2.0 12.0 72 KB

Discord bot that shows ranked point movement using Valorant's Private/In-Game API

Python 100.00%
discord discord-bot discord-py valorant ranked elo-rating elo ranking rank points

valorantrankedpointsbot's People

Contributors

picklejason avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

valorantrankedpointsbot's Issues

Traceback issue

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'

TypeError: cannot unpack non-iterable NoneType object

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

For some reason i can't get it to work?

image
This happens everytime i try to use this bot for some reason, i have tested in other bots/scripts elo checkers and they work perfectly
i couldn't find any social media to ask you about this so i opened this one, here's the traceback
image

Using Python 3.9.

idk how to solve this one

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')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.