Skip to content

LCHoldings/blockcypher-slack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Contributors Forks Stargazers Issues


Logo

BlockCypher Slack Bot

Add to Slack

Take your crypto transactions to your Slack chat.
Add to workspace Β· Report Bug Β· Fork Project

πŸ“ About The Project

Example Usage

I made this project to learn more about the Slack API and how to create a Slack bot. The bot is made to be used in a workspace 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 Slack API or how to create a Slack bot. The bot is also available to be added to your workspace if you want to use it using this link or finding it on the Slack marketplace. still in review as of now.

There is a Discord version of this bot available here by Cyber if you are interested in that instead!

(back to top)

πŸ› οΈ Made using

This section contains some of the most notable tools/libraries used in this project.

  • Slack
  • Axios
  • TypeScript

(back to top)

πŸ—οΈ Getting Started

How to run this project locally.

Prerequisites

  1. Copy the .env.example file to .env and fill out the fields with your own information.
# The port the server will run on
PORT=3000
  1. Install Nodemon (optional)
npm install -g nodemon

Installation

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.

  1. First of all, run the following command to install the necessary dependencies.

    npm install
  2. Run the following command to start the dev server.

    nodemon

    or if you don't have nodemon installed, you can run the following command.

    npm run dev
  3. 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.
  4. Create a Slack application

    • Go to the Slack API and create a new application.
    • Navigate to "App Manifest" and use this template:
    {
        "display_information": {
            "name": "My Test Application",
            "description": "Sends information about a crypto transaction.",
            "background_color": "#400a6c",
            "long_description": ""
        },
        "features": {
            "bot_user": {
                "display_name": "My Test Application",
            },
            "slash_commands": [
                {
                    "command": "/transaction",
                    "url": "NgrokURLFromPreviousStep/get-transaction",
                    "description": "Gets data about a specific crypto transaction.",
                    "usage_hint": "[Crypto wallet/transaction/link] [send in channel - optional]",
                    "should_escape": false
                }
            ]
        },
        "oauth_config": {
            "scopes": {
                "bot": [
                    "commands"
                ]
            }
        },
        "settings": {
            "org_deploy_enabled": false,
            "socket_mode_enabled": false,
            "token_rotation_enabled": false
        }
    }
    • Save the changes and install the app to your workspace.
  5. Go to your Slack workspace and use the command /transaction to test the bot!

  6. Enjoy!

(back to top)

πŸ—ΊοΈ Roadmap

  • 🚒 Release project
  • πŸ“ Add more commands
  • 🧹 Code Cleanup
  • πŸ“š Add more documentation
  • πŸ“¦ Better user experience

(back to top)

⛑️ Contributing

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!

  1. Fork the Project
  2. Change the project and add your files or changes (git add *)
  3. Commit your Changes (git commit -m 'Feat | Added XXXX to the XXX')
  4. Push to the Branch (git push)
  5. Open a Pull Request

πŸ† Top contributors:

contrib.rocks image

(back to top)

πŸ’Œ Contact

Lazyllama - @Lazyllamaa - [email protected]

Project Link: https://github.com/lcholdings/blockcypher-slack-bot

(back to top)

🌟 Acknowledgments

Thanks to the following people for their help and inspiration:

(back to top)

About

Tracks crypto transactions πŸ™‚

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published