edenau / discord-sidebar-price-bot Goto Github PK
View Code? Open in Web Editor NEWA minimal Discord sidebar price bot (supports forex, crypto, eth gas & fear and greed index)
A minimal Discord sidebar price bot (supports forex, crypto, eth gas & fear and greed index)
Hey,
I have problem with decimals. Bot is working, but shows price in scientific notation - $1.65e-08.
Do you have any solution for this?
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\discord\http.py", line 291, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "C:\Python39\lib\site-packages\discord\http.py", line 245, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\bblui\Desktop\discord-sidebar-price-bot-master\crypto_run.py", line 137, in
main(ticker=args.ticker,
File "C:\Users\bblui\Desktop\discord-sidebar-price-bot-master\crypto_run.py", line 125, in main
client.run(config['discordBotKey'])
File "C:\Python39\lib\site-packages\discord\client.py", line 708, in run
return future.result()
File "C:\Python39\lib\site-packages\discord\client.py", line 687, in runner
await self.start(*args, **kwargs)
File "C:\Python39\lib\site-packages\discord\client.py", line 650, in start
await self.login(*args, bot=bot)
File "C:\Python39\lib\site-packages\discord\client.py", line 499, in login
await self.http.static_login(token.strip(), bot=bot)
File "C:\Python39\lib\site-packages\discord\http.py", line 295, in static_login
raise LoginFailure('Improper token has been passed.') from exc
discord.errors.LoginFailure: Improper token has been passed.
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x00000238349D4670>
Traceback (most recent call last):
File "C:\Python39\lib\asyncio\proactor_events.py", line 116, in del
self.close()
File "C:\Python39\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Python39\lib\asyncio\base_events.py", line 746, in call_soon
self._check_closed()
File "C:\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Hey guys @edenau @rafitamolin , thank you for your work.
If either the host doesn't have internet connection for a few seconds or CoinGecko's API doesn't respond, the whole script crashes and needs to be restarted manually. I think it needs some kind of try/except function which restarts the script if a connection fails.
Hi guys @rafitamolin @edenau , you guys have done an excellent job with this bot. I have my own server where I under all the info of the cryptos and I would like to add some bots that provide me with the price information.
Trying to run the 'crypto_run.py' it throws me the following error, I hope you can help me.
Error:
await client.get_guild(config['guildId']).me.edit(nick=nickname)
AttributeError: 'NoneType' object has no attribute 'me'
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.