Coder Social home page Coder Social logo

discord-moderation-bot's Introduction

Moderation Bot

Requirements & Steps

  • This Project
  • Node.js, Discord.js Installed
  • Discord Bot Token, Prefix
  • Edit the config.js and owner.json file
  • Run npm i once in Terminal to install Dependencies
  • Run node index.js to RUN the bot.

Features & Info

  • Author: Manav Garg
  • Moderation Bot built to manage discord servers.
  • This bot has all the premium commands too. Hackban/forceban [Type of ip ban] is also available
  • Modular Discord bot built entirely on pure JavaScript using Discord.JS.
  • Modlogs for all the actions.

Commands

  • Ban | Unban
  • Deafen | Undeafen
  • DisableModLogChannel | SetModLogChannel
  • DisableMuteRole | SetMuteRole
  • Dm
  • Hackban/Forceban | Unban
  • Kick
  • Lock channel | Unlock
  • Lockdown [Only for emergency scenarios] | Unlock
  • Mute | Unmute
  • Purge
  • RoleAdd
  • RoleInfo
  • RoleMemberInfo
  • SetNick
  • Slowmode
  • Svr [Server Region change]
  • VoiceMove [Move a peerson from one vc to another]
  • Warn
  • Whois

Contributors:

discord-moderation-bot's People

Contributors

dependabot-preview[bot] avatar manavvgarg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-moderation-bot's Issues

i did evrything

it says npm WARN saveError ENOENT: no such file or directory, open '/Users/l.c/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/l.c/package.json'
npm WARN l.c No description
npm WARN l.c No repository field.
npm WARN l.c No README data
npm WARN l.c No license field.

up to date in 4.431s
found 0 vulnerabilities
when i type npm i
and internal/modules/cjs/loader.js:883
throw err;
^

Error: Cannot find module '/Users/l.c/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
when i say node index.js
can u gimme video tutorial?

Code

Error: Cannot find module 'C:\Users\Evoon\Desktop\Discord bot\main.js'
�[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)�[39m
�[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)�[39m
�[90m at internal/main/run_main_module.js:17:47�[39m {
code: �[32m'MODULE_NOT_FOUND'�[39m,
requireStack: []

config.json issue

exports.TOKEN = "your bot token";

exports.PREFIX = 'YOUR PREFIX';

exports.OWNER_ID = "YOUR ACC ID"
I dont know how this has an error?
Error: Expected a JSON object, array or literal.

the prefix command leaves this issue

(node:397) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined
at Object.run (/home/runner/Proton/commands/main/prefix.js:30:23)
at Client. (/home/runner/Proton/index.js:82:17)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (/home/runner/Proton/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/runner/Proton/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/Proton/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/runner/Proton/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/runner/Proton/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/runner/Proton/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (/home/runner/Proton/node_modules/ws/lib/websocket.js:825:20)
at Receiver.emit (events.js:315:20

Help with the code

`Debugger attached.
Waiting for the debugger to disconnect...
c:\Users\diara\node_modules\bindings\bindings.js:121
throw e;
^

Error: The module '\?\c:\Users\diara\node_modules\better-sqlite3\build\Release\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 88. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1150:18)
at Module.load (node:internal/modules/cjs/loader:971:32)
at Function.Module._load (node:internal/modules/cjs/loader:812:14)
at Module.require (node:internal/modules/cjs/loader:995:19)
at require (node:internal/modules/cjs/helpers:92:18)
at bindings (c:\Users\diara\node_modules\bindings\bindings.js:112:48)
at Object. (c:\Users\diara\node_modules\better-sqlite3\lib\database.js:9:24)
at Module._compile (node:internal/modules/cjs/loader:1091:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)
at Module.load (node:internal/modules/cjs/loader:971:32) {
code: 'ERR_DLOPEN_FAILED'
}
`

i have no idea how to fix it

bug (2)

TypeError: Cannot read property 'id' of null
at Client. (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\index.js:38:66)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\ws\lib\event-target.js:125:16)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\ws\lib\websocket.js:797:20)

bug

(node:31300) UnhandledPromiseRejectionWarning: TypeError: Spotify option "clientID" must be present and be a non-empty string.
at check (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\erela.js-spotify\dist\plugin.js:37:15)
at new Spotify (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\erela.js-spotify\dist\plugin.js:53:9)
at module.exports (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\events\client\ready.js:29:16)
at Client.emit (events.js:315:20)
at WebSocketManager.triggerClientReady (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
at WebSocketShard. (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:315:20)
at WebSocketShard.checkReady (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
at WebSocketShard.onPacket (C:\Users\user\Downloads\Discord-Moderation-Bot-main\Discord-Moderation-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)
(Use node --trace-warnings ... to show where the warning was created)
(node:31300) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:31300) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

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.