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