Git Product home page Git Product logo

discord-gatekeeper's Introduction

Discord-Gatekeeper

Discord People Online https://discord.gg/jbameAa5mf
Docker Build Status Docker Automated Status
Github open issues Github activity Github top language

About

Discord bot written in python. Used for the r/Oilpen discord but can be used by others by modifying the settings.json file to fit your needs.

PMs user on join with whatever message you set and a unique code, user must enter the unique code into a specified channel and they receive a discord role. Used to verify new users have read our rules and prove they are a human.

You will need the Server Members privileged intent for this bot to work, enable it in the discord dev portal under "Privileged Gateway Intents"

Running

We run ours in docker , but for most people it would be easier just running the code on your console. I am not an expert on docker, their could be an eaiser way to do this that I do not know about, feel free to submit a PR and I will change it.

Console

  1. Fork the repository
  2. Open settings.json in your editor of choice and change the contents of "one", "two", and "three" to fit your needs
  3. Clone the repository onto the machine you will be running the bot on
git clone https://github.com/YOURGITHUBUSERNAME/Discord-Gatekeeper/
  1. Install python requirements
pip3 install -r requirements.txt
  1. Edit settings.json and replace Token, Role, and Channel with your values. Role is the role it gives the user and channel is the channel it looks in for the commands to be put in. To find these ids turn on dev mode in discord and then right click the channel and role and click copy ID
  2. Run the following command to run the bot
python3 bot.py
  1. To make it run in the background use screen , and create a startup script in your distros preferred method.

Docker

  1. Do Steps 1 and 2 from above.
  2. Create a new repo on Docker Hub
  3. Name it discordgatekeeper
  4. Connect it to Github and select your Discord Gatekeeper repo on github
  5. Click Create and Build
  6. Take note of the text next to the globe. That is your dockerhub username and the repo name on dockerhub you will need this later
  7. On your docker host, run the following command
docker run -d \
  --name=DiscordGatekeeper \
  -e TOKEN='DISCORDBOTTOKEN' \
  -e ROLE='ROLEID' \
  -e CHANNEL='CHANNELID' \
  --restart unless-stopped \
YOURDOCKERHUBACCOUNTNAME/discordgatekeeper
  1. If you want to verify its working, just check the logs for the container

Credits

Initial code from sourovafrin on Fivrr
Assits from discord members on r/Oilpen

discord-gatekeeper's People

Contributors

slamanna212 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

chrisdewa

discord-gatekeeper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.