whitemike889 / Discord-Donation-Bot

A chatbot to accept cashapp or venmo donations on discord for a role.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DockerHub Docker Pulls

Discord Donation Bot

This is a chatbot that enables donations on discord via Cashapp or Venmo.

Features

  • Ability to accept payments from Cashapp or Venmo.
  • Fully automatic chatbot.

Commands:

.donate
This command is used to start the donation process for a user. 
.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.

How does it work?

Once the user sends payment including a unique identifying note, the bot then checks email to verify if the note and payment amount matches and then it grants a role to the user.

Setup

1. Fill out config.json

Follow guide to setup everything properly. (Important)

Click here for the full setup guide.

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"
}

Start

  1. Install requirements
pip3 install -r requirements.txt 
  1. Start the bot
python3 Run.py

Docker Setup & Start

  1. First pull the image
docker pull piratify/discord_donation_bot:latest
  1. Make the container
docker run -e "token=" -e "user=" -e "pass=" -e "imap_url=" -d --restart unless-stopped --name ddb piratify/discord_donation_bot:latest

OR (make sure you have the config file loaded)

docker run -v /path to config:/app/config/ -d --restart unless-stopped --name ddb piratify/discord_donation_bot:latest

About

A chatbot to accept cashapp or venmo donations on discord for a role.

License:GNU Affero General Public License v3.0


Languages

Language:Python 99.5%Language:Dockerfile 0.5%