Skip to content

๐Ÿ›’ Discord server monetization service to help users sell roles and receive donations

Notifications You must be signed in to change notification settings

airy-pay/airy-pay-new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Banner

Main workflow

Logo AiryPay

Discord bot which allows server owners to create a shop where users can purchase roles for real money. Simple yet powerful way to monetize and manage and sell roles within your community.

๐Ÿค– Bot commands

Command Description
/info Get current shop information
/product create Create product
/product delete Delete product
/product edit Edit product
/setup Set up shop in the server
/withdrawal create Create money withdrawal request

๐Ÿ“ฆ Manual deployment

  1. Create appsettings.json and paymentsettings.yaml files in project root directory using templates in ./src/AiryPayPay.Presentation and configure them.
  2. Create .env file using template in project root directory:
DISCORD_TOKEN=""
POSTGRES_DB=""
POSTGRES_USER=""
POSTGRES_PASSWORD=""
  1. Open 80 port to allow payment callbacks.
  2. Update database using Ef Core commands
  3. Start the project:
docker compose up -d

๐Ÿ—‚๏ธ Ef Core commands

Note

Run in Docker container CMD when using containers.

Create migration

dotnet ef migrations add --project src/AiryPayNew.Infrastructure/AiryPayNew.Infrastructure.csproj --startup-project src/AiryPayNew.Presentation/AiryPayNew.Presentation.csproj --context AiryPayNew.Infrastructure.Data.ApplicationDbContext --configuration Debug --verbose <Migration name>

Apply migrations

dotnet ef database update --project src/AiryPayNew.Infrastructure/AiryPayNew.Infrastructure.csproj --startup-project src/AiryPayNew.Presentation/AiryPayNew.Presentation.csproj --context AiryPayNew.Infrastructure.Data.ApplicationDbContext --configuration Debug --verbose

About

๐Ÿ›’ Discord server monetization service to help users sell roles and receive donations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published