Skip to content

A discord bot that works like an ecommerce, using pix as payment method.

Notifications You must be signed in to change notification settings

https-eduardo/ecommerce-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 Ecommerce Discord Bot

A discord bot that works like an ecommerce, you can sell any kind of digital product to users of your discord server. For now, pix is the unique payment method avaliable.

The API used to handle products, stocks and payments can be found here: Pix Integration with Nest.js

Application image

👩‍💻 Technologies used

  • Discord.js
  • Typescript

🤙 Operational example

Title Image Description
Step 1 - Creating a new product Step 1 (use command /produtos criar) Use the command "/produtos criar" to start, then click the button.
Step 1.1 product register form After clicking the button, this form will appear, insert the data and then click to submit.
Step 1.2 buy product message Now, with the product channel created, people can see the details and it stock.
Step 2 - Managing stock use command /produtos listar Well, as our product is without stock, we need to add items to it, so, use the command "/produtos listar" and click in "Gerenciar estoque".
Step 2.1 selecting option "adicionar" Select the option of what you gonna do, in this case "Adicionar" to add an new item to stock.
Step 2.2 inserting data in the stock item form Then, insert the information of the item that will be inserted.
Step 3 - Buying a product form to connect an email to user order Now, anyone in your discord server can buy the product that you're selling. In this image, you can see the form that opens when user clicks in buy button.
Step 3.1 order details and qr code to pay After inserting the email, a QR code to pay the order will be generated
Step 3.2 email sent to buyer after paying the product After payment confirmed, the item will be sent to buyer email and removed from the stock

🚀 How to run1

First of all, you'll need to set up the enviroment.

Following the .env.example, implement .env file and insert the values of variables.

# development
$ yarn dev

# production mode
$ yarn start

Footnotes

  1. PS: You have to provide an API for handling backend, like my recommendation in the top of this text.

About

A discord bot that works like an ecommerce, using pix as payment method.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages