SolPal is a discord bot that can be used to send and request payments in SOL and to interact with the Solana blockchain. It is designed to be as intuitive as possible, and to be easy to use. Can be invited to any server and is free to use. It is flexible and easy to expand. It features a number of commands, and is designed such that new commands can be added quickly.
- Allows to send tips and payments directly from Discord
- Recipient gets notification when payment confirmed
- Allows to send requests for payment to fellow Discord server members
- Automatically detects tx hashes in messages and allows display of tx details
- Solana blockchain information
- Account details based on address
- List account transactions
- Get chain information
- See last blocks information
- Check block information
- Check SOL price in USD
- Get details of any transaction based on hash
This bot is designed to be compatible with the following systems:
- Linux (Tested on Linux 5.13.0-51-generic)
- Windows (Not Tested)
- Mac OS (Tested on macOS Monterey 12.3)
$ git clone https://github.com/InfoX1337/SolPal.git
$ cd SolPal
$ cd web
$ yarn install
$ cd ..
$ cd bot
$ yarn install
$ cd ..
$ cd api
$ yarn install$ cd bot
$ npx prisma generate
$ npx prisma migrate dev (note: enter any name for your migration)
$ cd src
$ echo "" > config.json
$ cd ../..
$ cd api
$ npx prisma generate
$ cd ..
$ cd web
$ yarn buildAdd your config into the config.json file according to this schema:
{
"token": "BotTokenGoesHere",
"clientId": "BotClientId",
"guildId": "TestingGuildId",
"smartBrowserInteractionTime": 120000
}Before deployment, please finish the above steps
$ cd bot
$ yarn deployTo change the api link, go to the file web/components/PaymentProcessor.js and find the apiLink variable and change it to your own api link. (This will be moved to config.json later)
$ cd web
$ yarn start$ cd api
$ yarn start$ cd bot
$ yarn start