A Discord bot to retrieve Shopify Orders and Statistics
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
This is a simple Discord bot I developed to keep track of orders on my own Shopify Store. It was my first Python project and never intended for the public. However, I feel like it might be of use to someone out there. I will be going through the code eventually to optimize it.
Please let me know if you find any bugs or have feature requests!
The following things are required before using this project.
- Docker
- Shopify Store
- Discord Server
- API-Ninjas Key (free) https://api-ninjas.com/
- Setup Discord Bot - Setting up a Discord Bot
- Setup Shopify App - Setting up a Shopify App
- Clone the repo
git clone https://github.com/savdbroek/shopicord.git
- Edit the .env file in /app
nano app/.env
- Add your Discord ID to authors list in bot.py
authors = [YOUR DISCORD ID('s)]
- Build & Run the Container
docker run -it $(docker build -q .)
Use the following page to create your own Discord Bot:
[https://discordpy.readthedocs.io/en/stable/discord.html](Creating a Discord bot)
You need your Bot Token.
Don't worry you won't need to do anything complicated. Just open up your Shopify Admin page and follow along.
- Open Settings
- Open Apps and sales channels
- Click Develop Apps
- Click Create an App
- Give your App a beautiful name (Does not matter what)
- Click Create App
- Click Configure Admin API Scope
- Check the following boxes:
- read_analytics
- read_assigned_fulfillment_orders
- read_customers
- read_inventory
- read_orders
- read_product_listings
- read_products
- write_reports
- read_reports
- read_shopify_payments_payouts
- Click Save
- Click API Credentials
- Click Install App
- Click Reveal token once
- Copy your Shopify API Token
- Paste your Shopify API Token into app/.env
Currently there two commands:
- !orders - Display a list of all current open orders + show closed orders from current month and current balance
- !order order_# - Takes order number as argument. Shows information abou the order.
- Optimize and cleanup code
- You name it ;)
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU General Public License v3.0 License. See LICENSE
for more information.
Sander van den Broek - savdbroek@proton.me
Project Link: https://github.com/savdbroek/shopicord