Skip to content

snowgears/VerifyPurchaseDiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VerifyPurchaseDiscordBot

Discord bot that searches your PayPal transactions (by user entered email) and assigns a role if the purchase was verified.

There is also an option to check for previously verified emails!

Steps for getting started:

  • install the libraries in requirements.txt
    • python -m pip install -r requirements.txt
  • rename ".env example" to ".env"

Guide to filling out the .env file:

DISCORD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GUILD_LIST="xxxxxxxxxxxxxxxxxx"
ADMIN_ID_LIST="xxxxxxxxxxxxxxxxxx"
PAYPAL_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PAYPAL_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
RESOURCE_LIST="0000:verified-plugin0 1111:verified-plugin1"
  • Put your Spigot resource id here (found in your Spigot resource URL) followed by the Discord role you want to assign to a user once they have verified a purchase for that id. (This role must already exist on your server)
  • Put as many of these as you have separated by spaces within the string like in the example above


Now just run the bot wherever you are going to host it (and make sure it has a sufficient role to assign roles to users):

py -3 verifybot.py

Enjoy!

Donate
If this bot is helpful to you, please consider donating.

About

Discord bot that verifies a purchase from PayPal and assigns roles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages