I made this project to learn more about the Discord API and how to create a Discord bot using the api. The bot is made to be used in a discord server or Dm where you want to keep track of your crypto transactions. The bot uses the BlockCypher API to fetch information about transactions and addresses. The bot can be used to fetch information about a specific transaction or address.
The code is open-source and can be used by anyone who wants to learn more about the Discord API or how to create a Discord bot. The bot is also available to be added to your discord server or dm if you want to use it using this link or finding it on the Discord discovery. still in review as of now.
There is a Slack version of this bot available here by Lazyllama if you are interested in that instead!
This section contains some of the most notable tools/libraries used in this project.
How to run this project locally.
- Copy the
.env.example
file to.env
and fill out the fields with your own information.
# The Discord Application Id
APP_ID=123456789
# The Discord Bot Token
DISCORD_TOKEN=123456789
# Discord Bots Public Key
PUBLIC_KEY=123456789
- Install Nodemon (optional)
npm install -g nodemon
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
-
First of all, run the following command to install the necessary dependencies.
npm install
-
Run the following command to start the dev server.
npm run dev
-
Follow this tutorial to use Ngrok to expose your local server to the internet.
- Sign up for an account on Ngrok
- Download the Ngrok client and follow the instructions to set it up.
- Run the following command to expose your local server to the internet. Where PORT is the port you are running the server on.
ngrok http PORT
- Copy the URL that is generated and use it in the next steps.
-
Create a Discord Bot application
- Go to the Discord Developer Page and create a new application.
- Copy the Application ID, Discord Token, Public Key Into the env
-
Add the Discord Bot to a Server or Dm
-
Enjoy!
- 🚢 Release project
- 📝 Add more commands and suppport more crypto currencys
- 🧹 Code Cleanup
- 📚 Add more documentation
- 📦 Better user experience
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make the portfolio better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks!
- Fork the Project
- Change the project and add your files or changes (
git add *
) - Commit your Changes (
git commit -m 'Feat | Added XXXX to the XXX'
) - Push to the Branch (
git push
) - Open a Pull Request
Cyber - @Lazyllamaa - [email protected]
Project Link: https://github.com/lcholdings/blockcypher-discord-bot
Thanks to the following people for their help and inspiration: