SellAuth AIO

Here is the full setup guide to SellAuth AIO

Requirements

Before starting the bot, ensure you have the following set up:

  1. Bot Token: You will need your Discord Bot Token from the Discord Developer Portal.

  2. RDP or Host PC: Set up a Remote Desktop Protocol (RDP) to host the program or use your main PC for running the bot.

  3. SellAuth API Key & Shop ID: Obtain these credentials from Sellauth for integration.

  4. Discord Server: Make sure you have a Discord server ready where the bot will operate.

Setup Guide

To get your Sellauth AIO bot running smoothly, you will need to configure the config.json file properly. This file contains essential settings related to your Discord bot, customization preferences, and automation.

Here’s how to set it up:

1. Bot Token & Discord Settings

In the discord-settings section, you'll need to input several pieces of information to connect the bot to your Discord server.

  • bot-token: Replace "xxx" with your Discord bot token. This can be obtained from the Discord Developer Portal under your bot’s settings.

  • whitelisted-users: Add the Discord user IDs (separated by commas) of users who are authorized to interact with the bot. Example: ["123456789012345678"].

  • guild-id: Replace "xxx" with the Discord server ID where the bot will operate. This can be obtained by enabling Developer Mode in Discord settings, right-clicking the server icon, and selecting "Copy ID".

  • customer-role-id: The role ID for the customer role. This is used for role management within your server.

  • restock-role-id: The role ID for the restock role. This is used to assign specific permissions for restocking products.

Logging Settings

This section is for logging purposes to track bot activity:

  • sellauth-logs: Enter the channel ID for logging all Sellauth-related activities.

  • restock-channel-id: Enter the channel ID where restock-related updates should be sent.

  • sale-logs: Enter the channel ID where sale activities will be logged.


2. Customization Settings

In the customization section, you can modify the bot’s appearance and activity:

  • embed-color: The color of the embeds sent by the bot. You can customize it with any hex color code (e.g., #ff0000 for red).

  • thumbnail-image: Replace the URL with your custom image link, which will be displayed in embeds sent by the bot.

  • bot-customization:

    • custom-activity: Set a custom activity for your bot. For example, "hdboosts" will show the activity "hdboosts" on the bot's status.


3. Automation Settings

This section manages the server and Sellauth integration settings:

  • port: Set the port for your bot’s server. Default is 80, but you can adjust if needed.

  • host: Enter the host URL where your bot is running. For local testing, this should be "localhost". For Vps it should be the IP of your vps

  • sellauth: This part contains your integration details with the Sellauth platform:

    • api-key: Replace "xxx" with your Sellauth API Key. You can obtain this from the Sellauth admin panel.

    • merchant-name: Replace "xxx" with the merchant name used in the Sellauth system.

    • shop-id: Replace "xxx" with your Shop ID from Sellauth. This can be found in the Sellauth dashboard.

How to Retrieve Your API Key and Shop ID from Sellauth

  1. Log into Your Sellauth Account:

  2. Navigate to the API Access Section:

    • On the left-hand sidebar, you should see a list of options. Click on API to open the API Access page. https://dash.sellauth.com/api

    • This section is where you can manage your API key and find your Shop IDs.

  3. Get Your API Key:

    • In the API Access section, you will see the API Key displayed.

    • Click the Copy button next to the API Key to copy it to your clipboard.

    • You will need to paste this into the "api-key" field in your config.json file.

  4. Get Your Shop ID:

    • Under the Shop IDs section, you will see one or more shop IDs listed (e.g., hdboosts's Shop or HDB00STS).

    • Each shop has a corresponding Shop ID number. For example, hdboosts's Shop has the Shop ID 770 and HDB00STS has the Shop ID 122610.

    • Click the Copy button next to the Shop ID you want to use and paste it into the "shop-id" field in your config.json.

  5. Complete Configuration:

    • Now that you have both the API Key and Shop ID, you can paste them into your config.json

  6. Got it! For the merchant-name in the config.json, you’ll need to use the name before .mysellauth.com in your Sellauth store URL.

    For the example you provided, the store URL is: https://hdboosts.mysellauth.com my merchant name would be hdboosts

Step-by-Step Setup for Webhook Notifications:

  1. Navigate to Notifications Page:

    • Go to your Sellauth dashboard at Sellauth Dashboard.

    • In the left sidebar, click on Storefront, then select Notifications.

  2. Configure Webhook Notifications:

    • In the Notifications section, you will see various options like Invoice Processed, Invoice Items Out of Stock, Product Variant Out of Stock, etc.

    • Each of these can be configured to send notifications to different destinations: Email, Discord, or HTTP Request.

    To configure HTTP Requests, follow these steps:

    • For each notification type you want to use (such as Invoice Processed or Product Restocked), click the toggle switch under the HTTP Request column to enable it and then click the little gear icon to open up the webhook url input page image below

    • In the Webhook URL field, enter the URL where you want to send the webhook notifications. This URL is the endpoint that will receive the HTTP request when the event is triggered (for example, your bot or server that handles the request).

    • Now Click Continue and then do for all 4 webhooks that ive showed in image then click save in top right

  3. Enable Discord Notifications (Optional):

    • If you also want to get Discord notifications, click the toggle switch under Discord as well.

    • image below to show which webhooks to enable

    You can choose to enable notifications for multiple channels depending on your needs.

  4. Save Your Settings:

    • After configuring the notifications, make sure to click the Save button at the top right to apply your changes.


Webhook URL Configuration:

  • To use the HTTP Request feature, you need to set up a server or endpoint where Sellauth can send the webhook data. This can be an API or any server endpoint you’ve created to handle the incoming webhook.

  • Example Webhook URL:

    Ensure your endpoint is ready to receive POST requests with JSON data from Sellauth.


Final Notes:

  • Once these settings are saved, Sellauth will send the specified events as HTTP requests to the configured endpoint.

  • Make sure to handle these incoming webhooks properly in your server or bot to perform the necessary actions when events occur.

Now You are ready to start the exe and start using the bot within your discord any issues make a ticket in my discord - https://discord.hdboosts.cc/

Last updated