A bot which allows people to buy stuff from you using a discord bot!
- Portable python script, runs on windows as well as linux
- Simple, beginner friendly deployment
- Integrated crypto payments using Coinbase Commerce
- Integrated Fiat payments using Razorpay
- Uses interactions from discord.py 2.0
- In-built email address verification using SMTP
- Now supports database storage using MongoDB
Clone the project into it's seperate folder
git clone --single-branch --branch main https://github.com/The-Parth/discord-ordering-bot.git
Grab all the required dependencies simply by running the main file.
python main.py
As simple as that! Just set up your .ENV variables and you are good to go! Note: You might have a different python version. In that case, use py, py3 or python3 instead of python.
To run this project, you will need to add the following environment variables to your .env
file
TOKEN
= Discord-Bot-TokenCB_TOKEN
= Coinbase-TokenEMAIL_SENDER
= Your own email address
EMAIL_SENDER_NAME
= Name to be displayed on the emailEMAIL_PASSWORD
= Password of the email address (App passwords recommended)EMAIL_SMTP
= SMTP server of the email addressEMAIL_PORT
= SMTP port of the email address
ORDER_CHANNEL
= Channel ID of the channel where the bot will send the order detailsFEEDBACK_CHANNEL
= Channel ID of the channel where the bot will send the feedback
RPAY_KEY_ID
= Key ID for RazorpayRPAY_KEY_SECRET
= Key Secret for Razorpay
MONGO_URI
= MongoDB URI
Make sure to run the command when Current Working Directory is the same as the one containing the bot.py file
python bot.py
You can edit the code as per your requirements by reading the code yourself.
Note: Our Mail is tested to be working with Zoho mail SMTP. Some other mail providers may not work.
To change the otp mails, edit data/carts/otp.html file and change the text as per your requirements.
Razorpay was used in test mode. However, it should work in production mode as well.
MongoDB, if not available, will require you to use the main branch instead of the mongo branch.
This branch is under development and may not be stable.