austinwagner / discord_xbl_status Goto Github PK
View Code? Open in Web Editor NEWDisplay Xbox Live Status in Discord
License: MIT License
Display Xbox Live Status in Discord
License: MIT License
Hi Austin,
I'd really like to use your script and I have almost no clue what I'm doing, but I've installed everything as per your instructions and now get an error when executing the file as follows:
File "discord_xbl_status.py", line 40
def init(self, config: XblPresenceMonitorConfig, event_loop=None):
^
SyntaxError: invalid syntax
Did I do something wrong and if so, how can it be fixed?
Is there any way you could maybe make a tutorial on how to use your program?
I'm kinda new to python and would really like to use this program.
Every time i try to issue the command after filling out the config, i get this error thrown at me. I've tried numerous things to fix this with no results.
2018-03-01 16:48:16,315 [INFO ] __main__ Using default logging config
2018-03-01 16:48:16,317 [WARNING] discord.client PyNaCl is not installed, voice will NOT be supported
2018-03-01 16:48:16,318 [INFO ] discord.client attempting to login via cache
2018-03-01 16:48:16,322 [INFO ] discord.client login cache file found
2018-03-01 16:48:16,742 [INFO ] discord.client cache auth token is out of date
2018-03-01 16:48:17,458 [INFO ] discord.client updating login cache
Traceback (most recent call last):
File "discord_xbl_status.py", line 217, in <module>
main()
File "discord_xbl_status.py", line 214, in main
monitor.run()
File "discord_xbl_status.py", line 143, in run
self._event_loop.run_until_complete(tasks)
File "C:\Users\yukin\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py", line 467, in run_until_complete
return future.result()
File "c:\users\yukin\desktop\discord_xbl_status-master\src\discord.py\discord\client.py", line 489, in start
yield from self.login(*args, **kwargs)
File "c:\users\yukin\desktop\discord_xbl_status-master\src\discord.py\discord\client.py", line 416, in login
yield from getattr(self, '_login_' + str(n))(*args, **kwargs)
File "c:\users\yukin\desktop\discord_xbl_status-master\src\discord.py\discord\client.py", line 374, in _login_2
self._update_cache(email, password)
File "c:\users\yukin\desktop\discord_xbl_status-master\src\discord.py\discord\client.py", line 198, in _update_cache
f.write(self.http.token)
TypeError: write() argument must be str, not None
2018-03-01 16:48:17,516 [ERROR] asyncio Task was destroyed but it is pending!
task: <Task pending coro=<XblPresenceMonitor._on_ready() running at discord_xbl_status.py:116> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x000002DE690F0168>()]> cb=[gather.<locals>._done_callback(1)() at C:\Users\yukin\AppData\Local\Programs\Python\Python36\lib\asyncio\tasks.py:616]>
2018-03-01 16:48:17,517 [ERROR] asyncio Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000002DE690FA908>```
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.