Code Monkey home page Code Monkey logo

executioner-bot's Introduction

Executioner Bot

A simple bot designated specially for doing little, fun and harmless cyberbullying on my discord server :) P.S. No one was offended.

Configuration

Create a .env file:

TOKEN=[BOT_TOKEN_HERE]
CLIENT_ID=[CLIENT_ID_HERE]
GUILD_ID=[GUILD_ID_HERE]
# role id (optional)
ROLE_ID=[ROLE_ID_HERE]

ROLE_ID contains the id of the role that has access to use this bot. Also, it may be not specified, if you don't want to restrict usage of the bot to a certain role.

If you want to configure this bot, edit the config.json file. Default configuration:

{
   "logs": {
      "toFile": false
   },
  "execution": {
    "totalDuration": 30,
    "muteDuration": 3,
    "muteTimeout": 1
  },
  "deportation": {
    "moveCount": 10,
    "moveTimeout": 0.75
  }
}

Starting the Bot

Requirements

  1. Go to Discord application page and create a bot, then invite it to your server
  2. Clone this repository locally
  3. Create the .env file and configure the bot
  4. Start with Docker
    1. Run docker compose up
  5. Or without
    1. Run npm install
    2. Run node deploy-commands.js (only once when deploying)
    3. Run node bot.js

Commands

Name Description
/execution start <user> Starts muting and unmuting specified user for a period of time
/execution stop <user> Stops the execution on specified user
/execution stopall Stops the execution on all users
/execution list Displays all users under execution
/deportation start <user> Starts moving specified users between server's voice channels
/deportation clear Stops the deportation of all users

License

This project is MIT licensed.

executioner-bot's People

Contributors

rzhomba avatar

Watchers

 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.