haza / pubg-discord-stats Goto Github PK
View Code? Open in Web Editor NEWGet stats from PUBG's API when a match ends, and display them on Discord
Get stats from PUBG's API when a match ends, and display them on Discord
Traceback (most recent call last):
File "main.py", line 131, in
InitMatchesPerUser(api, userList)
File "/home/ubuntu/pubg-discord-stats/prefly.py", line 11, in InitMatchesPerUser
for player in players:
File "/usr/local/lib/python3.5/dist-packages/pubg_python/decorators.py", line 23, in wrapper
self.fetch()
File "/usr/local/lib/python3.5/dist-packages/pubg_python/querysets.py", line 43, in fetch
self._data = self.client.request(self.endpoint)
File "/usr/local/lib/python3.5/dist-packages/pubg_python/clients.py", line 30, in request
raise exception()
pubg_python.exceptions.APIError: Something went wrong with your request
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f53d6cfbdd8>
This happens when starting the bot. I've not change anything in the code or my configs when this started happening. Any ideas?
This project is awesome and something I've been looking for lately. Thank you!
Would it be possible to also calculate and display the change in leaderboard ranking (total ranking # up or down) as part of the output?
Hey, firstly thanks for making this.
I am running two separate instances, one with PC_NA and one with PC_EU as discord is fairly evenly split between the two and people switch between them depending on who is playing.
I have added 25 players to the users.json in each instance - When I run the the main.py it only goes through about 5 of them and those are the only ones whos matches get tracked? it seems to ignore the rest of the list (using the !players command displays the full player list).
Am I doing something wrong?
Thanks
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.