Code Monkey home page Code Monkey logo

banfromdiscord's Introduction

banhammerbanhammerbanhammerbanhammerbanhammer

Setup

Clone the repository with git clone https://github.com/pollovolante/BanFromDiscord or download and extract the zip file.

Installation

Note: You need NodeJS installed on your system.

Install dependencies by running npm i in your terminal.

Discord Bot

You first need to create a Discord bot and then copy the bot token. Do so by following this guide here.
Duplicate .env.example and rename it as .env. Not .env.txt, just .env.
Now put the bot token into .env.
If you want you can also change the bot prefix in the same file.

Add Roblox Script

Replace ip with your backend server's IP address on line 17 of BanFromDiscord.lua.
Then create a webhook into a log channel to receive info from the Roblox server and copy the webhook URL. Creating a webhook
Now paste the webhook URL at line 16 of BanFromDiscord.lua.
Finally, select everything and paste it into a script inside ServerScriptService.

Running the backend server

Now you only have to start up the backend server and Discord bot.
Run npm start in your terminal and that's it!
Time to destroy players from Discord >:D

Commands Usage

Duration arguments

Actual duration Passed argument
30 minutes 30m
2 hours 2h
10 days 10d
3 weeks 3w

Commands

§temp - Temporary Ban
Usage: §temp robloxUsername banDuration reason
Example 2 day ban: §temp polloarrosto01 2d using exploits

§gameban - Permanent Ban
Usage: §gameban robloxUsername reason
Example permanent ban: §gameban polloarrosto01 exploiting noob

§unban - Unban
Usage: §unban robloxUsername reason
Example unban: §unban polloarrosto01 because yes

banfromdiscord's People

Contributors

edomango05 avatar marsron avatar

Stargazers

 avatar  avatar

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.