/Warranty-Bot

A Discord bot for managing digital product warranties, automating replacement requests, and tracking customer reviews and vouches. Ideal for sellers on platforms like Sellix to ease after-sales support.

Primary LanguagePythonApache License 2.0Apache-2.0

Discord - Warranty Bot

A Discord bot for managing digital product warranties, automating replacement requests, and tracking customer reviews and vouches. Ideal for sellers on platforms like Sellix to ease after-sales support. The bot will check if the user vouched in the right format (+rep @ownerid quantity product price), if they made a 5 star review on the shop and if the warranty expired. It includes an auto warranty duration scrapper using product title, the warranty duration is of course customisable in products.json

๐Ÿ’ฌ Discord ยท ๐Ÿ“œ ChangeLog ยท โš ๏ธ Report Bug ยท ๐Ÿ’ก Request Feature

โš™๏ธ Installation

  • Requires: Python 3.9+
  • Make a python virtual environment: python3 -m venv venv
  • Source the environment: venv\Scripts\activate (Windows) / source venv/bin/activate (macOS, Linux)
  • Install the requirements: pip install -r requirements.txt
  • Start: python3 main.py

๐Ÿ”ฅ Features

  • Nice Embeds
  • Easy rebrand
  • Creates vouch messages
  • Can dm the user with his product (file/text) or stock (saved under stock/productname.txt)
  • Checks if the user vouched in the rigt format (+rep <@ownerid> quantity product price)
  • Checks if the user made a 5 star website review before opening a ticket
  • Smart Ticket system included (.replace will close the ticket)
  • Auto Scrapes warranty duration from product titles and saves data in product.json (Product id, title and warranty duration)
  • Customizable, if you manually changed a warranty duration in json it will not update it while scrapping
  • Can add excluded product ids for the warranty scrapper in excluded.json
  • Everything in config.json is customizable and changable using the .set command
  • Transcribe the replace ticket!
  • And more!

Commands

  • โ„น๏ธ .help - List all available commands
  • ๐Ÿ“จ .replace_message - Initiates a replacement request system
  • ๐Ÿ—‘๏ธ .remove_product <product_id> - Removes and excludes a product by its ID in JSON
  • ๐Ÿ”‘ .create_warr <product_id> <duration> - Creates a new warranty for a product
  • ๐Ÿ“ฆ .stock <product> <file> - Saves product to a stock file under stock/.txt
  • ๐Ÿ”„ .replace <user> [amount] <product> [file/string] - Sends a replacement embed to a user. It can be sent from stock (using the amount parameter) or a file/string (no amount parameter needed)
  • ๐Ÿงน .warr - Displays an embed with the warranty duration of all products
  • ๐Ÿ”ง .set <setting> <value> - Set various bot configurations. Use .set help for details
  • ๐Ÿ”Ž .check_warr <user> <order_id> - Checks if the user has vouched, left a web review, and if their warranty has not expired
  • โš™๏ธ .transcribe <user> - Transcribes the dm of any user

๐Ÿ“น Preview

Queue Bot Help Command Queue Bot Queue System Queue Bot DM Queue Bot replacement request Queue Vouch Required


โ— Disclaimers

  • I am not responsible for anything that may happen, such as API Blocking, Account Termination, etc.
  • This was a quick project that was made for fun and personal use if you want to see further updates, star the repo & create an "issue" here

๐Ÿ“œ ChangeLog

v0.0.1 โ‹ฎ 08/14/2024
! Initial release

v0.0.1 โ‹ฎ 00/1/2024
! Added ticket transcription