Skip to content

Configuration

Faiz Ahmed edited this page Jun 22, 2021 · 5 revisions

Filling out settings in config.json

Example config.json

{
    "token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "role": "donator",
    "Price": 10,
    "cashapp": "test",
    "venmo": "test",
    "note":"1a001-",
    "user":"test@gmail.com",
    "password":"vaadsgagcqlgzsox",
    "imap_url":"imap.gmail.com"
}

Paste the discord bot token into "".

Example: "token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",

Follow this guide on how to get that. Note: When inviting the bot to your discord server make sure it has “Administrator” permission.

Enable Intents.

https://discordpy.readthedocs.io/en/latest/intents.html#privileged-intents

Setting up Email Filters (IMPORTANT!)

This process if for gmail. Other mailing platforms should be similar.

  1. Add a new folder/label named "pay"

  2. Create filters

Cashapp:

cash@square.com
"sent you"

Venmo:

venmo@venmo.com
"paid you"

They should look like this:

Setting up IMAP settings

User is your email.

For password please refer to this. (For GMAIL)

  • Use an App Password: If you use 2-Step Verification, try signing in with an App Password.
    • Important: If you sign in with OAuth, use your regular Google password.
  • Allow less secure apps: If you don't use 2-Step Verification, you might need to allow less secure apps to access your account.

IMAP url for gmail is imap.gmail.com

Example:

"user":"test@gmail.com",
"password":"vaadsgagcqlgzsox",
"imap_url":"imap.gmail.com"

Rest of the settings

These settings can be configured from discord itself using the commands below.

"role": "",
"Price": 10,
"cashapp": "",
"venmo": "",
.setprice <price>
This command is used to set/change price of donation. 
.setrole <@role>
This command is used to  set/change role of donation. 
.setpayment <cashapp/venmo> <address>
This command is used to  set/change address of payment method.