GitXplorerGitXplorer
0

defillama-telegram-bot

public
3 stars
4 forks
4 issues

Commits

List of commits on branch main.
Verified
6298b35900b0be0e792e0e3cdfe6e0ce48c0699f

Add files via upload

00xCaso committed 3 years ago
Verified
1c364be3f680d26bcf5fde1195a16d675907ed6b

Add files via upload

00xCaso committed 3 years ago
Verified
792ec2a26588614f8b54e589b2d6febf8d6f7df2

Update README.md

00xCaso committed 3 years ago
Verified
218f983d1aa05c34e0efd855766a6feedca541ae

Update README.md

00xCaso committed 3 years ago
Unverified
d1cbd2eacec30bfc4010dc75e25aa2c60a41ff59

add /info and /tip commands, /fairPrice could be enhanced

00xCaso committed 3 years ago
Unverified
d0af2e1dd36500f1f2dfc1161c1fa50dd1ce2fd6

Last fixes + add counter for used commands

00xCaso committed 3 years ago

README

The README file for this repository.

DefiLlama Telegram Bot

A bot that you can use to interact with DefiLlama from Telegram. To find it on Telegram, literally search for 'DefiLlamaBot'.

Preview

What can you do with this bot?

You can do some nice things, such as:

  • search for a protocol listed in DefiLlama
  • compare two protocols, watching the MCAP/TVL ratio
  • see the price that a protocol could have had when its TVL was at ATH, if MCAP was equal to TVL
  • get a chart of the first N protocols for TVL
  • get a chart of the first N performers or losers, of the last day or week
  • get a chart with the protocols with highest potential, evaluating MCAP, FDV and TVL

You can interact with the bot using the /menu command, from which you can fire all the commands.
You can also use the command /info to get better explainations about the logic behind the stats you can get.
If you're interested about the (not complex) math used for the charts and comparisons, look inside utils.js.

Acknowledgments

I would like to say thank you to DefiLlama team (free APIs are nice eheh) and to grammY's (Telegram Bot Framework) community which helped me in their Telegram group, saving me a lot of time for real.

Contributions

If you would like to see new features for this bot, feel free to open an issue or a pull request here, or write me on Twitter (0xCaso).
For local dev, just pull the repo, npm install and setup the .env file with the variables used inside bot.js. Then fire node bot.js and enjoy.

Useful links:
DefiLlama API
grammY docs
Chart.js docs