Code Monkey home page Code Monkey logo

gatekeeper's Introduction

Gatekeeper Bot


About

I wanted to create a bot to handle whitelisting of minecraft servers from inside Discord and without any outside user interaction. Simply follow the whitelist format and the bot handles the rest. Then the project turned into what other functionality could I help a community with by allowing user documentation on subjects such as infractions, donations, Minecraft Name, Discord roles and punishments such as a temporary ban without someone having to keep track of when it expires.

Some additional functionality was added for replying to players with certain keywords or allowing them to check the status of a server, allowing the AMP console to be output to a specific Discord channel, allowing Discord users to talk to players inside of a Minecraft server and allowing staff to control a server inside of Discord.


Requirements

  • Currently it is required that the user creates their own bot.
  • Please Install Python; you will also need to install the required packages.
    • Run pip install -r requirements.txt in the same directory as Gatekeeper Bot.
  • You also need to be using Cube Coders AMP with a instance of Minecraft Java (any version later than 1.12) set up and running.

Setup

  1. Follow the instructions inside the tokenstemplate.py file and config.py
  2. Run the script via Powershell or Command Prompt.
  3. Once the Bot has connected in any channel type //setup discord_role_id or discord_role_name. The specified Discord Role is now the master Operator/Owner of the Bot.
  4. To see Bot errors, set up Bot Setting: BotComms
    • Use the command //botsetting botcomms discord_channel_id or discord_channel_name to set a channel for bot errors to be sent.
  5. Setting up your AMP Servers
    • You must enable whitelist on your AMP Instance via Configuration -> Gameplay and Difficulty
      • You must set the servers //server server_name whitelist to true to allow for users to request whitelist.
  6. Once done; familarize yourself with the Commands

Features

  • Multi-MC Server Support with Database integration for storing Server specific settings and controls!
  • Expanding Support for plugins on your Minecraft Servers such as /tempban!
  • Auto-Reply feature to assist players who are in need of information with customizable replies!
  • Spam Protection on your Discord Server against Nitro bots and similar spam!
  • Auto-Whitelist of Discord Users to your Minecraft Servers with a simple message.
  • Live AMP Console to Discord Channels with ability to send server console commands.
  • Live Minecraft Server Chat to Discord Channels with communication both ways.
  • Resetting of the Ender Dragon Fight and World via Discord!
  • Control over AMP Servers via Discord with commands such as Start, Stop, Kill and Restart.
  • Configurable Logging of all Discord Bot Commands and Server Commands by Users.
  • Tracking of Discord Users Donator Status, Minecraft Playtime, In-Game Name, Last login, Infractions/Punishments, Whitelist status, Banned Status/Expiration Time and much more...

--- **Version** alpha-1.0.2

gatekeeper's People

Contributors

k8thekat avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

gatekeeper's Issues

KeyError: SessionID

I'm running the latest version of Gatekeeper and have followed all the provided instructions however when I try to run the bot I get an error saying `KeyError: 'SessionID'

Not sure how to fix.

Linux

logs file \logs

all \ needs converting to //

Whitelist Error

I'm trying to run the bot but I'm now getting this error:

image

Chat not reading from in game to Discord.

Describe the bug
I have set up the bot and am having some issues.
The main one is that the bot does not seem to be parsing the console chat and forwarding it to Discord.
I have chat going from discord->minecraft. Just not the other way.

To Reproduce
Steps to reproduce the behavior:
I simply set up the bot following the instructions, added the correct channels with //server (name) channel chat (ID)
Unfortunately nothing is coming to discord.
Log file - snippets of the log work.
If applicable, add screenshots to help explain your problem.

https://gist.github.com/Electrofried/b87677f3c975af4bbdba93fe00274359

Version - Look for "Version: alpha-X.X.X"
-3.0.18

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.