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](https://github.com/camo/8bc0e02d067baf8465453f56e4315668522b0476c412d8f20f2c3cc42a00af0f/68747470733a2f2f696d6775722e636f6d2f4f5176774d42502e706e67)
Title |
Image |
Description |
Step 1 - Creating a new product |
![Step 1 (use command /produtos criar)](https://github.com/camo/afc7a4755c397b8a6b38a603f84bffab87a0d9d6694a15a7f9ed47aa018ffa0a/68747470733a2f2f696d6775722e636f6d2f4851534442556c2e706e67) |
Use the command "/produtos criar" to start, then click the button. |
Step 1.1 |
![product register form](https://github.com/camo/beb7b6bea38ff049cb0ad1221c96fdf666f8ead6a2aba7e612635431b8ec41c3/68747470733a2f2f696d6775722e636f6d2f634a74576662342e706e67) |
After clicking the button, this form will appear, insert the data and then click to submit. |
Step 1.2 |
![buy product message](https://github.com/camo/8bc0e02d067baf8465453f56e4315668522b0476c412d8f20f2c3cc42a00af0f/68747470733a2f2f696d6775722e636f6d2f4f5176774d42502e706e67) |
Now, with the product channel created, people can see the details and it stock. |
Step 2 - Managing stock |
![use command /produtos listar](https://github.com/camo/61d57540df92587edeb4e87fe242e63e5b6d98eb8ad42fe20e3572566836943d/68747470733a2f2f696d6775722e636f6d2f6643746b356f4d2e706e67) |
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"](https://github.com/camo/a62c447367ad5d31098b7a017ba55c5a8c65a630cbfde5add1bb39d906a5c9d4/68747470733a2f2f696d6775722e636f6d2f6849747a7555782e706e67) |
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](https://github.com/camo/adbd107664b3da5cf71b2ef2f9131121c0505313a4285d9f7fc071f5c546dc8d/68747470733a2f2f696d6775722e636f6d2f566c41753444722e706e67) |
Then, insert the information of the item that will be inserted. |
Step 3 - Buying a product |
![form to connect an email to user order](https://github.com/camo/6c378391df1433f54c539221c7118cf5ec5b000863c209ea9f1fdd90e1b9e1cd/68747470733a2f2f696d6775722e636f6d2f614a6e505a786e2e706e67) |
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](https://github.com/camo/6c378391df1433f54c539221c7118cf5ec5b000863c209ea9f1fdd90e1b9e1cd/68747470733a2f2f696d6775722e636f6d2f614a6e505a786e2e706e67) |
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](https://github.com/camo/2103e52cb06051afd4edfdf84e5875f07f9864c45782b8dd70648928e0593c70/68747470733a2f2f696d6775722e636f6d2f50517474336d772e706e67) |
After payment confirmed, the item will be sent to buyer email and removed from the stock |
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