mrmouihbi / bep20-price-discord-bot Goto Github PK
View Code? Open in Web Editor NEWA discord bot that changes its name to the bep20 token's price in usd. The token must be listed on pcs (or any other AMM Dex) vs bnb pair for this example.
A discord bot that changes its name to the bep20 token's price in usd. The token must be listed on pcs (or any other AMM Dex) vs bnb pair for this example.
What is pair-address-on-pcs?
Traceback (most recent call last):
File "/home/nim1com/bep20-price-discord-bot/main.py", line 4, in
from price_calculation import getPrice
File "/home/nim1com/bep20-price-discord-bot/price_calculation.py", line 10, in
myToken = web3.eth.contract((Web3.toChecksumAddress(config('0x778632cE3C40783c304090c4CA888287Db31784F'))), abi=erc20_abi)
File "/home/nim1com/.local/lib/python3.9/site-packages/decouple.py", line 199, in call
return self.config(*args, **kwargs)
File "/home/nim1com/.local/lib/python3.9/site-packages/decouple.py", line 83, in call
return self.get(*args, **kwargs)
File "/home/nim1com/.local/lib/python3.9/site-packages/decouple.py", line 68, in get
raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: 0x778632cE3C40783c304090c4CA888287Db31784F not found. Declare it as envvar or define a default value.
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.