Giter VIP home page Giter VIP logo

hammer-time's Introduction

ARCHIVED

There is no reason for me to keep this bot up to date, especially since Discord has added numerous security features since I first made this.

This bot will not be updated

Hammer Time

What is it?

This Discord bot is a type of raid prevention. I have seen several raids where a bunch of people make accounts and join, all under the same name, so this bot will automatically ban people if they match a specific name you have set.

How to Install and Run

  1. Install node.js
  2. Download bot.js
  3. Make a bot (skip to use an existing bot)
  4. Make sure it is a bot user
  5. Next to Token click click to reveal
  6. Copy the token and paste it between the quotation marks in line 1 of bot.js
    • Should look like const botToken = 'yourBotToken';
  7. Open Discord and make sure your have Developer Mode enabled
    • Go to User Settings > Appearance > enable Developer Mode
  8. Right click (or control+click on mac) your name, then click Copy ID
  9. Paste your ID between the quotation marks in line 2 of bot.js
    • Should look like const ownerID = 'yourDiscordID';
  10. Run npm install to install dependencies
  11. Run node ./bot.js from your terminal (make sure to replace ./bot.js with the directory of the file)
    • This will create several files and folders, the folder location can be defined with the basedir constant in line 4

Commands

Everyone

  • @hammer time#3703 source displays a link to the bot source (this github page)
  • @hammer time#3703 invite displays an invite link for the bot to be added to a server

Server Moderator (must have the Ban Members permission)

  • @hammer time#3703 list sends you a DM of blocked usernames
  • @hammer time#3703 add <name> adds a blocked username
  • @hammer time#3703 addraw <regex> adds a blocked username Regular Exponent (remember to escape things meant to be escaped and be to careful with this command)
  • @hammer time#3703 remove <number> removes a blocked username (use "list" command to get the number)
  • @hammer time#3703 banmsg <text> what the bot says when it bans
  • @hammer time#3703 bans send you a DM of the list of bans
  • @hammer time#3703 silentban [yes|no] enables or disables the "goodbye" message on each ban (no arguments will toggle the state)
  • @hammer time#3703 help sends you a DM with this help list

Bot Owner

All of these commands are done by being sent via a DM to the bot

  • servers sends you a dm of all connected servers
  • leave <number> leaves a connected server (use "servers" command to get the number)
  • blacklisted lists all blacklisted servers
  • blacklist <id> blacklists a server
  • unblacklist <number> removes a server from the blacklist (use "blacklisted" command to get the number)
  • joinnotify [yes|no] enables or disables dming when joining a server (no arguments will toggle the state)
  • leavenotify [yes|no] enables or disables dming when leaving a server (no arguments will toggle the state)
  • help gives you this help list

Questions?

Feel free to DM me on Discord, @Jake#1885

hammer-time's People

Contributors

atharv-pathak-14 avatar zomoxyz 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.