GitXplorerGitXplorer
0

defillama-telegram-bot

public
3 stars
4 forks
4 issues

Commits

List of commits on branch main.
Verified
ede5d099b15aba204960c802c7480786645b700a

Update README.md

00xCaso committed 2 years ago
Verified
3ab73aeb486bf7df600f7a427d21e02517ea0cc6

Merge pull request #16 from chainfloo/main

00xCaso committed 2 years ago
Unverified
0620193a02bff2add6dcc21864f4bc7bda0f018b

Made some changes to the info presented when the /info command is hit

cchainfloo committed 2 years ago
Unverified
3123f49b81104945f81dd4859648ae83c22d86a1

Merge branch 'main' of https://github.com/0xCaos/defillama-telegram-bot into main

00xCaso committed 3 years ago
Unverified
5e0fe66813be779357b2ac45c3301c497f652357

Update README.md

00xCaso committed 3 years ago
Verified
b19d7a92cc470d15f98de917c1a3d6f4f2147d7d

Update README.md

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