Skip to the content.

Ai Bot Public

Ai Bot is a discord bot aimed to help digital creators verify the purchases of the customers inside discord servers.

Table Of Contents

Gumroad Requirements

In order for license keys to be generated for uses, ensure that the Generate a unique license key per sale option is enabled on all of your products. If you don’t have it enabled, enabling it should generate a license key for all previous sales, so don’t worry if you don’t have it set yet. More info about license keys here.

Users can find their license key on the download page of their product. If they don’t have a gumroad account they can fill out the form on this page https://app.gumroad.com/license-key-lookup.

Server Setup

Invite to Server

Invite the bot to your server by clicking on the bots profile and selecting Add App. Alternatively you can use this link.

To get support or updates, join the discord server: https://discord.com/invite/bM7nw7XQyk

Permissions Setup

After you add the bot to your server there are a couple of things you will need to do to get the bot working.

  1. By default, only the server owner can run the product commands. If you want other admins to be able to add/edit/remove products, you can manage the bot commands permissions in the Apps -> Integrations section of your server settings.
  2. Ensure the Ai Bot role is above all other roles. If a user has a role that is higher than the Ai Bot role then the bot will not be able to add a role to that user. Please note that the bot will not be able to add roles to the server owner regardless of permissions.
  3. Ensure all roles that you want to have access to the /verify command have the Use Application Commands permission.
  4. Ensure all channels that you want to have access to any slash command has the Use Application Commands permission.

Usage

When using commands, make sure you press tab to move to the next argument.

Product Commands

A product is an item that a discord user can verify against. Users can verify products using the verify command.

Add a New Product

/product add <platform> <product-name> <product-code> <avatar-role> <product-variant>

This command is used to add a new product. Once added, users can run /verify to verify a purchase against this product.

The arguments for this command are:

Edit an Existing Product

/product edit <product> <platform> <product-name> <product-code> <avatar-role> <product-variant>

This command is the same as /product add but with an additional first field to select what product to edit. You must re-enter all fields again, otherwise they will be set to blank. If you want to remove a variant, then click on the variant field and leave blank.

Deleting a Product

/product delete <product> <confirmation>

This commands deletes a product. Just select the product you want deleted, and confirm you want it deleted.

Verify Command

Verifying a Purchase

/verify <avatar> <key>

This command verifies a product purchase for a user.

Integration Commands

Integrations will allow us to use 3rd party APIs like Gumroad & PayHip.

Add a New Integration

/integration add <platform> <name> <access-token>

Edit an Existing Integration

/integration edit <integration> <platform> <name> <access-token>

Delete an Integration

/integration edit <integration> <platform> <name> <access-token>

Discount Commands

Before you create a discount, ensure you have an integration set up for Gumroad. Docs for it here. This is because in order for the bot to create discount codes on your behalf, it’ll need to be able to authenticate to your account.

Add a Discount

/discount add <product> <integration> <avatar-role> <name> <offer-type> <amount> <max-generated-codes> <max-user-generated-codes> <max-uses> <expires-at>

Edit a Discount

Only a limited number of fields can be edited for discounts. /discount edit <discount> <avatar-role> <name> <max-generated-codes> <expires-at>

Delete a Discount

/discount delete <discount> <confirmation>

Redeem Command

Redeem a discount

/redeem <discount>