Hi PH!
I have a lot of code that I have written over the years I think would be incredible to share!
This project creates a Discord bot that integrates with Stripe's Identity API to enable identity verification of users. Let's break down what the code does and how to set it up on a Discord server hosted on Heroku with Stripe:
What the Code Does:
Initialization: The code initializes and logs into a Discord bot client using the discord.js library. It also sets up an express web server and a Stripe client.
Message Listener: The bot listens for messages and if any user sends a !verify command, it creates an identity verification session with Stripe and sends a verification link to the user.
Webhook Endpoint: An endpoint /stripe-webhook is set up to listen for callbacks from Stripe. When Stripe sends a webhook saying a user has been verified, the bot gives that user a role named "ID Verified" in the Discord server.
Enjoy!
Sell Your Content