Skip to content

Latest commit

 

History

86 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolPal

Introduction

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.

Features

  • 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

System Compatibility

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)

Installation

Prerequisites

$ git clone https://github.com/InfoX1337/SolPal.git
$ cd SolPal
$ cd web
$ yarn install
$ cd ..
$ cd bot
$ yarn install
$ cd ..
$ cd api
$ yarn install

First Time Setup

$ 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 build

Add your config into the config.json file according to this schema:

{
    "token": "BotTokenGoesHere",
    "clientId": "BotClientId",
    "guildId": "TestingGuildId",
    "smartBrowserInteractionTime": 120000
}

Deploying slash commands

Before deployment, please finish the above steps

$ cd bot
$ yarn deploy

Changing the api link in frontend

To 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)

Starting the Web Server

$ cd web
$ yarn start

Starting the API

$ cd api
$ yarn start

Starting the Bot

$ cd bot
$ yarn start

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages