Coder Social home page Coder Social logo

0xcaso / defillama-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 4.0 24.37 MB

A bot that you can use to interact with DefiLlama from Telegram. To find it on Telegram, literally search for 'DefiLlamaBot', or go to https://t.me/DefiLlamaBot. (CURRENTLY IS NOT ACTIVE, WILL CHANGE HOSTING ASAP)

JavaScript 100.00%
defillama crypto telegram-bot chartjs grammy blockchain

defillama-telegram-bot's Introduction

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

defillama-telegram-bot's People

Contributors

0xcaso avatar chainfloo avatar

Stargazers

 avatar

Watchers

 avatar

defillama-telegram-bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.