Git Product home page Git Product logo

simpleboy353 / reaper-2.0 Goto Github PK

View Code? Open in Web Editor NEW
331.0 6.0 229.0 54.75 MB

A multi-purpose discord bot made using Discord.js V14. Includes Logging, Welcomer, Slash Commands, Menu based Help Command and so much more!

License: GNU General Public License v3.0

JavaScript 100.00%
multi-purpose discord-js-bot fun-bot beginner-friendly slash-commands select-menu modlogs mongodb-database welcomer-bot customizable-options

reaper-2.0's Introduction

REAPER-2.0

GitHub License Buy Me A Coffee GitHub Stars GitHub Forks Support Server

A Multi-purpose Discord bot with many features!

Requirements

  • Discord.js v14 (npm install discord.js@latest)
  • applications.commands scope enabled for your bot in Developer Portal (For Slash Cmds).
  • MESSAGE_CONTENT, GUILD_MEMBERS intents enabled in Developer Portal (GUILD_PRESENCES is optional)
  • NodeJS v16.9.0 or higher
  • Basic knowledge of JS or Discord.JS

Have suggestions on what could be added?

  • Leave your suggestions right here then!

What features does Reaper Include?

Available Features
Features Availability
Anti-Link
Autorole
Auto-Mod
Custom Prefix
Permanent Database
Welcomer
Logging
Menu(s)
Suggestion System
Slash Commands
Rep System
Command Categories
Commands Category Availability
Configuration
Fun
Image
Info
Moderation
Music
NSFW
Utilities

Versions and Support Info

Detailed Versions Info
REAPER Versions Support Status
v8.1.0-beta (Suggestion System) (Current) Available
v8.0.0 (V14 Support Added) Available
v7.3.0-stable (Updated Rep System) Discontinued
v7.2.0-stable (Rep System) Discontinued
v7.1.5-stable (Button controls for music) Discontinued
v7.1.0-stable (Support for Activities) Discontinued
v7.0.0-stable (Music System) Discontinued
v6.7.5-alpha (Better Error Logging) Discontinued
v6.7.0-beta (Slash Cmds, Thread Events) Discontinued
v6.6.0-beta (Logging, New UI for settings) Discontinued
v6.5.0-stable (V13 Support Added) Discontinued
v6.3.0-stable (Anti-Link Support) Discontinued
v6.1.0-stable (Error Free Version) Discontinued
v5.5.0-stable (Welcomer Added) Discontinued
v5.0.0-beta (Autorole Added) Discontinued
v4.9.0-alpha (Custom Prefix Added) Discontinued
v4.4.0-alpha (Database Support Added) Discontinued
  • Keep checking the Releases Section to get the latest info relating new updates, bug fixes etc about the repository.
  • The Information above includes Versions with only Major Updates and not Versions with Bug fixes
  • v6.1.0-stable is included in the List because this version includes the fixing of every error in the repository.
  • Support is provided only for Stable and Beta Versions and not for Alpha Versions.

Getting started

Creating a fork:

Installing all necessary packages

  • npm install

Starting the bot

  • node . or node index

Configuration

  • Edit the config.json file and enter the required values
{
  "OWNER_ID": "YOUR_ID_HERE",
  "BOT_TOKEN": "YOUR_BOT_TOKEN",
  "tenorAPI":"ZEEELJXAFQBN",
  "DEFAULT_PREFIX":"ENTER_YOUR_PREFIX_HERE",
  "mongoPass": "ENTER_YOUR_MONGODB_URL_HERE",
  "ERROR_LOGS_CHANNEL": "ADD_ERRORLOGS_CHANNEL_ID",
  "YT_COOKIE": "ADD_YOUR_COOKIE_HERE",
}
  • Watch this video to know, how to get the YT_COOKIE
  • You may use any channel id for ERROR_LOGS_CHANNEL, but the bot must be present in the server you are choosing the ID from.
  • All the errors your bot faces, will be logged in the ERROR_LOGS_CHANNEL
  • The mongoPass must be a url
  • Visit Official MongoDB Website to get your mongoPass
  • Watch this video to know how to get your mongoPass: MongoDb Tutorial
  • Don't change the tenorAPI else the gif command won't work!

Contributing


Star the Repo if you liked it!

reaper-2.0's People

Contributors

agentrocky avatar brandontorreglosa avatar clement0016 avatar davlix avatar dependabot[bot] avatar ekamaujla avatar insufikoder avatar katochayush avatar kevin-daniel avatar kian-g avatar korsinemi avatar lilymusic avatar mrredo avatar nateay0 avatar notminhducgamingtv avatar razor735 avatar renovate-bot avatar simpleboy353 avatar thettayman avatar vaibhav-naik-26 avatar zlannon 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

reaper-2.0's Issues

error log channel

um hey!
what am I supposed to do with the ERROR_LOGS_CHANNEL in the config.json?

Want Image Commands?

Just Make Me Conributer And Ill Add Them Since Pull Requests Dont Work For Me

Hosting Bot HELP

Hi, so I have a problem with Heroku when hosting Reaper2.0 here is the log

C:\Users\natha\Desktop\N-Bot>heroku logs -a nate-bot-0 2021-11-08T20:40:45.886956+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2021-11-08T20:40:45.886956+00:00 app[web.1]: at Module.require (node:internal/modules/cjs/loader:999:19) 2021-11-08T20:40:45.886957+00:00 app[web.1]: at require (node:internal/modules/cjs/helpers:102:18) 2021-11-08T20:40:45.886957+00:00 app[web.1]: at bindings (/app/node_modules/bindings/bindings.js:112:48) 2021-11-08T20:40:45.886958+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/better-sqlite3/lib/database.js:9:24) 2021-11-08T20:40:45.886958+00:00 app[web.1]: at Module._compile (node:internal/modules/cjs/loader:1095:14) 2021-11-08T20:40:45.886958+00:00 app[web.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10) 2021-11-08T20:40:45.886958+00:00 app[web.1]: at Module.load (node:internal/modules/cjs/loader:975:32) { 2021-11-08T20:40:45.886959+00:00 app[web.1]: code: 'ERR_DLOPEN_FAILED' 2021-11-08T20:40:45.886959+00:00 app[web.1]: } 2021-11-08T20:40:45.886963+00:00 app[web.1]: 2021-11-08T20:40:45.886964+00:00 app[web.1]: Node.js v17.0.1 2021-11-08T20:40:46.005262+00:00 heroku[web.1]: Process exited with status 1 2021-11-08T20:40:51.973050+00:00 heroku[worker.1]: Starting process with command node index2021-11-08T20:40:52.765727+00:00 heroku[worker.1]: State changed from starting to up 2021-11-08T20:40:53.513708+00:00 app[worker.1]: /app/node_modules/bindings/bindings.js:121 2021-11-08T20:40:53.513717+00:00 app[worker.1]: throw e; 2021-11-08T20:40:53.513718+00:00 app[worker.1]: ^ 2021-11-08T20:40:53.513718+00:00 app[worker.1]: 2021-11-08T20:40:53.513718+00:00 app[worker.1]: Error: The module '/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node' 2021-11-08T20:40:53.513719+00:00 app[worker.1]: was compiled against a different Node.js version using 2021-11-08T20:40:53.513719+00:00 app[worker.1]: NODE_MODULE_VERSION 93. This version of Node.js requires 2021-11-08T20:40:53.513720+00:00 app[worker.1]: NODE_MODULE_VERSION 102. Please try re-compiling or re-installing 2021-11-08T20:40:53.513720+00:00 app[worker.1]: the module (for instance, usingnpm rebuildornpm install). 2021-11-08T20:40:53.513720+00:00 app[worker.1]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1177:18) 2021-11-08T20:40:53.513720+00:00 app[worker.1]: at Module.load (node:internal/modules/cjs/loader:975:32) 2021-11-08T20:40:53.513721+00:00 app[worker.1]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2021-11-08T20:40:53.513721+00:00 app[worker.1]: at Module.require (node:internal/modules/cjs/loader:999:19) 2021-11-08T20:40:53.513721+00:00 app[worker.1]: at require (node:internal/modules/cjs/helpers:102:18) 2021-11-08T20:40:53.513721+00:00 app[worker.1]: at bindings (/app/node_modules/bindings/bindings.js:112:48) 2021-11-08T20:40:53.513722+00:00 app[worker.1]: at Object.<anonymous> (/app/node_modules/better-sqlite3/lib/database.js:9:24) 2021-11-08T20:40:53.513722+00:00 app[worker.1]: at Module._compile (node:internal/modules/cjs/loader:1095:14) 2021-11-08T20:40:53.513722+00:00 app[worker.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10) 2021-11-08T20:40:53.513722+00:00 app[worker.1]: at Module.load (node:internal/modules/cjs/loader:975:32) { 2021-11-08T20:40:53.513722+00:00 app[worker.1]: code: 'ERR_DLOPEN_FAILED' 2021-11-08T20:40:53.513722+00:00 app[worker.1]: } 2021-11-08T20:40:53.513728+00:00 app[worker.1]: 2021-11-08T20:40:53.513728+00:00 app[worker.1]: Node.js v17.0.1 2021-11-08T20:40:53.648373+00:00 heroku[worker.1]: Process exited with status 1 2021-11-08T20:40:53.720821+00:00 heroku[worker.1]: State changed from up to crashed 2021-11-08T20:40:53.736494+00:00 heroku[worker.1]: State changed from crashed to starting 2021-11-08T20:41:03.925365+00:00 heroku[worker.1]: Starting process with command node index2021-11-08T20:41:04.861015+00:00 heroku[worker.1]: State changed from starting to up 2021-11-08T20:41:06.214042+00:00 app[worker.1]: /app/node_modules/bindings/bindings.js:121 2021-11-08T20:41:06.214053+00:00 app[worker.1]: throw e; 2021-11-08T20:41:06.214054+00:00 app[worker.1]: ^ 2021-11-08T20:41:06.214054+00:00 app[worker.1]: 2021-11-08T20:41:06.214054+00:00 app[worker.1]: Error: The module '/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node' 2021-11-08T20:41:06.214055+00:00 app[worker.1]: was compiled against a different Node.js version using 2021-11-08T20:41:06.214055+00:00 app[worker.1]: NODE_MODULE_VERSION 93. This version of Node.js requires 2021-11-08T20:41:06.214055+00:00 app[worker.1]: NODE_MODULE_VERSION 102. Please try re-compiling or re-installing 2021-11-08T20:41:06.214056+00:00 app[worker.1]: the module (for instance, usingnpm rebuildornpm install). 2021-11-08T20:41:06.214056+00:00 app[worker.1]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1177:18) 2021-11-08T20:41:06.214058+00:00 app[worker.1]: at Module.load (node:internal/modules/cjs/loader:975:32) 2021-11-08T20:41:06.214058+00:00 app[worker.1]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2021-11-08T20:41:06.214059+00:00 app[worker.1]: at Module.require (node:internal/modules/cjs/loader:999:19) 2021-11-08T20:41:06.214059+00:00 app[worker.1]: at require (node:internal/modules/cjs/helpers:102:18) 2021-11-08T20:41:06.214059+00:00 app[worker.1]: at bindings (/app/node_modules/bindings/bindings.js:112:48) 2021-11-08T20:41:06.214059+00:00 app[worker.1]: at Object.<anonymous> (/app/node_modules/better-sqlite3/lib/database.js:9:24) 2021-11-08T20:41:06.214060+00:00 app[worker.1]: at Module._compile (node:internal/modules/cjs/loader:1095:14) 2021-11-08T20:41:06.214060+00:00 app[worker.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10) 2021-11-08T20:41:06.214060+00:00 app[worker.1]: at Module.load (node:internal/modules/cjs/loader:975:32) { 2021-11-08T20:41:06.214061+00:00 app[worker.1]: code: 'ERR_DLOPEN_FAILED' 2021-11-08T20:41:06.214061+00:00 app[worker.1]: } 2021-11-08T20:41:06.214066+00:00 app[worker.1]: 2021-11-08T20:41:06.214066+00:00 app[worker.1]: Node.js v17.0.1 2021-11-08T20:41:06.365987+00:00 heroku[worker.1]: Process exited with status 1 2021-11-08T20:41:06.788963+00:00 heroku[worker.1]: State changed from up to crashed 2021-11-08T20:43:56.000000+00:00 app[api]: Build started by user [email protected] 2021-11-08T20:45:01.061426+00:00 app[api]: Deploy 3f9645ca by user [email protected] 2021-11-08T20:45:01.061426+00:00 app[api]: Release v4 created by user [email protected] 2021-11-08T20:45:01.306952+00:00 heroku[worker.1]: State changed from crashed to starting 2021-11-08T20:45:10.101093+00:00 heroku[worker.1]: Starting process with command node index2021-11-08T20:45:10.798616+00:00 heroku[worker.1]: State changed from starting to up 2021-11-08T20:45:11.618588+00:00 app[worker.1]: /app/node_modules/bindings/bindings.js:121 2021-11-08T20:45:11.618599+00:00 app[worker.1]: throw e; 2021-11-08T20:45:11.618600+00:00 app[worker.1]: ^ 2021-11-08T20:45:11.618600+00:00 app[worker.1]: 2021-11-08T20:45:11.618600+00:00 app[worker.1]: Error: The module '/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node' 2021-11-08T20:45:11.618601+00:00 app[worker.1]: was compiled against a different Node.js version using 2021-11-08T20:45:11.618601+00:00 app[worker.1]: NODE_MODULE_VERSION 93. This version of Node.js requires 2021-11-08T20:45:11.618602+00:00 app[worker.1]: NODE_MODULE_VERSION 102. Please try re-compiling or re-installing 2021-11-08T20:45:11.618602+00:00 app[worker.1]: the module (for instance, usingnpm rebuildornpm install). 2021-11-08T20:45:11.618602+00:00 app[worker.1]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1177:18) 2021-11-08T20:45:11.618603+00:00 app[worker.1]: at Module.load (node:internal/modules/cjs/loader:975:32) 2021-11-08T20:45:11.618603+00:00 app[worker.1]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2021-11-08T20:45:11.618603+00:00 app[worker.1]: at Module.require (node:internal/modules/cjs/loader:999:19) 2021-11-08T20:45:11.618604+00:00 app[worker.1]: at require (node:internal/modules/cjs/helpers:102:18) 2021-11-08T20:45:11.618604+00:00 app[worker.1]: at bindings (/app/node_modules/bindings/bindings.js:112:48) 2021-11-08T20:45:11.618604+00:00 app[worker.1]: at Object.<anonymous> (/app/node_modules/better-sqlite3/lib/database.js:9:24) 2021-11-08T20:45:11.618605+00:00 app[worker.1]: at Module._compile (node:internal/modules/cjs/loader:1095:14) 2021-11-08T20:45:11.618605+00:00 app[worker.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10) 2021-11-08T20:45:11.618605+00:00 app[worker.1]: at Module.load (node:internal/modules/cjs/loader:975:32) { 2021-11-08T20:45:11.618605+00:00 app[worker.1]: code: 'ERR_DLOPEN_FAILED' 2021-11-08T20:45:11.618606+00:00 app[worker.1]: } 2021-11-08T20:45:11.618606+00:00 app[worker.1]: 2021-11-08T20:45:11.618606+00:00 app[worker.1]: Node.js v17.0.1 2021-11-08T20:45:11.762412+00:00 heroku[worker.1]: Process exited with status 1 2021-11-08T20:45:11.811457+00:00 heroku[worker.1]: State changed from up to crashed 2021-11-08T20:45:19.000000+00:00 app[api]: Build succeeded

TypeError [REQ_RESOURCE_TYPE]: The resource must be a string, Buffer or a valid file stream.

a6

Bro there is a lot of errors with image commands !!

Commands with link like this works well (biden command) :

message.channel.send({ files: [{ attachment:https://api.popcatdev.repl.co/biden?text=${bidenMessage}`, name: 'reaperbiden.jpg' }] }); `

but commands without link like this (facts command) i have this error :

const link = await client.images.image.facts({ text: text }) message.channel.send({ files: [ { attachment: link }, ], }); }, };

Error

npm ERR! code 1

npm ERRI path /home/container/node_modules/youtube-dl-exec

npm ERR! command failed

npm ERR! command sh -c npm run check && node scripts/postinstall.js

npm ERR > [email protected] check

rpm ERR! > bin-version-check python ">=2"

npm ERR! Error: Couldn't find the python' binary. Make sure it's installed and in your SPATH.

npm ERR!

at binaryVersion (file:///home/container/node_modules/bin-version/index.js:44:22)

npm ERR!

rpm ERR! at processTicksAndRejections (node: internal/process/task_queues:96:5) at async binaryVersionCheck (file:///home/container/node_modules/bin-version-check/index.js:14:18)

Prefix.js command does not work.

First, the command "if (message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(You don't have the required Permissions!)" does not work because you're checking if they HAVE the permission, not if they don't. To fix the issue, just put a ! infront of the condition. For example: "if (message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(You don't have the required Permissions!)" would turn to "!if (message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(You don't have the required Permissions!)". Also, mongoose is outdated. You should switch it to something more compatible. I tried the command and the command does not work.

help

if i fire up the bot it go error:
/app/Commands/Info/botinfo.js:45
SyntaxError: Unexpected end of input
How to fix?

Msg.edit is not a function

Various commands crash the bot with the exception: Uncaught Exception: TypeError: msg.edit is not a function So far it seems to happen with greentext and pp. Addionally, ping fails with a Cannot send an empty message error, also collection.ensureIndex is deprecated

/track play

a8
a9
a10

i have this error when i want to play music with slash commands

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Update dependency json-schema to 0.4.0 [SECURITY]

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.


  • Check this box to trigger a request for Renovate to run again on this repository

error

Getting this error help me! Uncaught Exception: ReferenceError: client is not defined

Unexpected token error

uhh so i get this error when i try to run the bot

C:\Users\Administrator\Desktop\Bot\Commands\Info\help.js:70
<<<<<<< Updated upstream
^^

SyntaxError: Unexpected token '<<'
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at loadCommands (C:\Users\Administrator\Desktop\Beta\handler\loadCommands.js:13:23)
at Object.<anonymous> (C:\Users\Administrator\Desktop\Beta\index.js:35:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47

Player

ERROR][ERR_LOG][16-11-2021, 20:09:13 pm]: Status code: 410
[ERROR][ERR_LOG][16-11-2021, 20:09:14 pm]: [PlayerError] Cannot play a resource that has already ended

started having this issue today worked fine before today kinda wierd Just looking for support or if anyone else has this issue

Error

npm ERR! code 1

npm ERRI path /home/container/node_modules/youtube-dl-exec

npm ERR! command failed

npm ERR! command sh -c npm run check && node scripts/postinstall.js

npm ERR > [email protected] check

rpm ERR! > bin-version-check python ">=2"

npm ERR! Error: Couldn't find the python' binary. Make sure it's installed and in your SPATH.

npm ERR!

at binaryVersion (file:///home/container/node_modules/bin-version/index.js:44:22)

npm ERR!

rpm ERR! at processTicksAndRejections (node: internal/process/task_queues:96:5) at async binaryVersionCheck (file:///home/container/node_modules/bin-version-check/index.js:14:18)

mega latency

Hey, i've installed everything correct, and when i use the !ping command the latency is well over 100ms, how can i reduce the latency... it's only when i use or connect to this bot using mongoPass i get wild latency, anyway for me to host this locally?

Error Pls Help Me

node index.js
/home/runner/REAPER-20/node_modules/discord.js/src/rest/RESTManager.js:32
const token = this.client.token ?? this.client.accessToken;
^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js
 node index.js
/home/runner/REAPER-20/node_modules/discord.js/src/rest/RESTManager.js:32
const token = this.client.token ?? this.client.accessToken;
^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/runner/REAPER-20/node_modules/discord.js/src/client/BaseClient.js:4:21)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
exit status 1

How to fix this ??

error. How to locate and fix this?

[FATAL] Possibly Unhandled Rejection at: Promise Promise {
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (/home/runner/REAPER-20-2/node_modules/discord.js/src/client/websocket/WebSocketManager.js:244:15)
at async Client.login (/home/runner/REAPER-20-2/node_modules/discord.js/src/client/Client.js:245:7) {
[Symbol(code)]: 'DISALLOWED_INTENTS'
}
} reason: Privileged intent provided is not enabled or whitelisted.
Uncaught Exception: TypeError: Cannot read properties of undefined (reading 'send')
/home/runner/REAPER-20-2/index.js:81
client.channels.cache.get(ERROR_LOGS_CHANNEL).send({ embeds: [exceptionembed] })
^

TypeError: Cannot read properties of undefined (reading 'send')
at process. (/home/runner/REAPER-20-2/index.js:81:48)
at process.emit (node:events:390:28)
at process._fatalException (node:internal/process/execution:170:25)
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-10-11T03_15_28_922Z-debug.log

Replit Hosting Issue 😞

` node index
internal/modules/cjs/loader.js:818
throw err;
^

Error: Cannot find module 'node:events'
Require stack:

  • /home/runner/N-Bot/node_modules/discord.js/src/client/BaseClient.js
  • /home/runner/N-Bot/node_modules/discord.js/src/index.js
  • /home/runner/N-Bot/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/runner/N-Bot/node_modules/discord.js/src/client/BaseClient.js:3:22)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/runner/N-Bot/node_modules/discord.js/src/client/BaseClient.js',
    '/home/runner/N-Bot/node_modules/discord.js/src/index.js',
    '/home/runner/N-Bot/index.js'
    ]
    }`

Can anyone please help?

MODULE_NOT_FOUND

node:internal/modules/cjs/loader:930
throw err;
^

Error: Cannot find module 'mongoose'
Require stack:

  • C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:15)
    at Function.Module._load (node:internal/modules/cjs/loader:772:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object. (C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\index.js:11:18)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:816:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\index.js'
    ]
    }

when i put "NPM INSTALL MONGOOSE" it gives me error

npm ERR! code 1
npm ERR! path C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | win32 | x64
npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas\build\Release\canvas.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-win32-unknown-x64.tar.gz
npm ERR! node-pre-gyp http 404 https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-win32-unknown-x64.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-win32-unknown-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-win32-unknown-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.6 found at "C:\Users\si\AppData\Local\Programs\Python\Python39\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v16.4.0/node-v16.4.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.4.0/node-v16.4.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v16.4.0/SHASUMS256.txt
npm ERR! gyp http GET https://nodejs.org/download/release/v16.4.0/win-x86/node.lib
npm ERR! gyp http GET https://nodejs.org/download/release/v16.4.0/win-x64/node.lib
npm ERR! gyp http GET https://nodejs.org/download/release/v16.4.0/win-arm64/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.4.0/SHASUMS256.txt
npm ERR! gyp http 404 https://nodejs.org/download/release/v16.4.0/win-arm64/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.4.0/win-x86/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.4.0/win-x64/node.lib
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19041
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas\build\Release\canvas.node" "--module_name=canvas" "--module_path=C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas\build\Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
npm ERR! gyp ERR! cwd C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas
npm ERR! gyp ERR! node -v v16.4.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19041
npm ERR! node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd C:\Users\si\Downloads\REAPER-2.0-6.3.0-stable\REAPER-2.0-6.3.0-stable\node_modules\canvas
npm ERR! node-pre-gyp ERR! node -v v16.4.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
npm ERR! node-pre-gyp ERR! not ok

srry, i don't know about coding

the game commands dont work with v12.5.3 maybe package err : discord-gamecore

(node:4) UnhandledPromiseRejectionWarning: TypeError: INVALID_MENU_TYPE: Invalid type
2021-09-09T21:47:41.400601+00:00 app[Worker.1]: at Object.resolveMenu (/app/node_modules/discord-buttons/src/v12/Util.js:53:64)
2021-09-09T21:47:41.400602+00:00 app[Worker.1]: at /app/node_modules/discord-buttons/src/v12/Classes/APIMessage.js:235:118
2021-09-09T21:47:41.400603+00:00 app[Worker.1]: at Array.map ()
2021-09-09T21:47:41.400603+00:00 app[Worker.1]: at /app/node_modules/discord-buttons/src/v12/Classes/APIMessage.js:234:33
2021-09-09T21:47:41.400603+00:00 app[Worker.1]: at Array.map ()
2021-09-09T21:47:41.400604+00:00 app[Worker.1]: at APIMessage.resolveData (/app/node_modules/discord-buttons/src/v12/Classes/APIMessage.js:230:40)
2021-09-09T21:47:41.400604+00:00 app[Worker.1]: at ExtendedTextChannel.send (/app/node_modules/discord-buttons/src/v12/Classes/TextChannel.js:19:62)
2021-09-09T21:47:41.400605+00:00 app[Worker.1]: at SnakeGame.startGame (/app/node_modules/discord-gamecord/src/Snake.js:161:48)
2021-09-09T21:47:41.400605+00:00 app[Worker.1]: at Object.execute (/app/commands/Games/snake.js:27:12)
2021-09-09T21:47:41.400606+00:00 app[Worker.1]: at commandExecute (/app/events/guild/message.js:351:28)
2021-09-09T21:47:41.400606+00:00 app[Worker.1]: at /app/events/guild/message.js:395:11
2021-09-09T21:47:41.400607+00:00 app[Worker.1]: at /app/node_modules/mongoose/lib/model.js:5074:18
2021-09-09T21:47:41.400607+00:00 app[Worker.1]: at processTicksAndRejections (internal/process/task_queues.js:77:11)
2021-09-09T21:47:41.400607+00:00 app[Worker.1]: (Use node --trace-warnings ... to show where the warning was created)
2021-09-09T21:47:41.400618+00:00 app[Worker.1]: (node:4) 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: 2)
2021-09-09T21:47:41.400661+00:00 app[Worker.1]: (node:4) [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.

DM Command Not Working

image
image

I know that this command is disabled but why and can I just enable it again by deleting
return message.channel.send( "the Command has been disabled because of facing crash issues"

and

by changing disable to enable?

const state = "disabled"; if (state === "disabled") {

Mongo Error

Keep getting this error in console
[FATAL] Possibly Unhandled Rejection at: Promise Promise { <rejected> MongooseError: Operation antilinks.findOne()buffering timed out after 10000ms at Timeout.<anonymous> (d:\Default Download\REAPER-2.0-master\REAPER-2.0-master\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:198:23) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) } reason: Operationantilinks.findOne() buffering timed out after 10000ms

Console says:

Test Bot connected to Mongo DB
Test Bot could not connect to mongo DB

Error

When I use node . I get this error:

QiMac:REAPER-2.0 quinns$ node .
internal/modules/cjs/loader.js:1080
throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/quinns/REAPER-2.0/node_modules/chalk/source/index.js
require() of ES modules is not supported.
require() of /Users/quinns/REAPER-2.0/node_modules/chalk/source/index.js from /Users/quinns/REAPER-2.0/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename /Users/quinns/REAPER-2.0/node_modules/chalk/source/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/quinns/REAPER-2.0/node_modules/chalk/package.json.

at Object.Module._extensions..js (internal/modules/cjs/loader.js:1080:13)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/Users/quinns/REAPER-2.0/index.js:2:15)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14) {

code: 'ERR_REQUIRE_ESM'
}

any idea on this error

home/runner/here/node_modules/discord.js/src/managers/GuildMemberRoleManager.js:36
return this.guild.roles.cache.filter(role => this.member._roles.includes(role.id)).set(everyone.id, everyone);
^

TypeError: Cannot read properties of undefined (reading 'id')
at GuildMemberRoleManager.get cache [as cache] (/home/runner/here/node_modules/discord.js/src/managers/GuildMemberRoleManager.js:36:101)
at TextChannel.memberPermissions (/home/runner/here/node_modules/discord.js/src/structures/GuildChannel.js:206:32)
at TextChannel.permissionsFor (/home/runner/here/node_modules/discord.js/src/structures/GuildChannel.js:166:29)
at GuildMember.permissionsIn (/home/runner/here/node_modules/discord.js/src/structures/GuildMember.js:229:20)
at module.exports (/home/runner/here/events/guild/command.js:23:25)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)

bug?

uhh its weird
i stopped the bot with ^C in the console
then started it with node index.js
then i ran a command, the bot replied twice
stopped, and ran the bot again
this time the bot is replying 3 times,

the last time i made a bot the same issue occured

what could be the issue?

Message error

Good night, because when I only put the prefix of the bot it sends me a message that I should mention to someone? that should not happen when just putting the prefix

error

[FATAL] Possibly Unhandled Rejection at: Promise Promise {
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (D:\moderation\REAPER-2.0\node_modules\discord.js\src\client\websocket\WebSocketManager.js:249:15)
at async Client.login (D:\moderation\REAPER-2.0\node_modules\discord.js\src\client\Client.js:245:7) {
[Symbol(code)]: 'DISALLOWED_INTENTS'
}
} reason: Privileged intent provided is not enabled or whitelisted.
Uncaught Exception: TypeError: Cannot read properties of undefined (reading 'send')
D:\moderation\REAPER-2.0\index.js:79
client.channels.cache.get(ERROR_LOGS_CHANNEL).send({ embeds: [exceptionembed] })
^

TypeError: Cannot read properties of undefined (reading 'send')
at process. (D:\moderation\REAPER-2.0\index.js:79:48)
at process.emit (node:events:390:28)
at process._fatalException (node:internal/process/execution:170:25)

AlexFlipNote API

Hey dude, I have a slight issue, I have got an API from Alexflipnote but there is no documentation on how to change the API in this, could you kindly tell me where it is that I have to change?

Regards.

Commands

Some commands aren't working, like userinfo / mute / etc etc. And sometimes the bot goes automatic offline when someone says a specific command.

Need Suggestions!

Hello to everyone reading this, first of all thank you for all the love you have shown to this repo! Secondly, I have opened this issue, so that you can suggest features that could be added to this bot! For now, I am thinking of adding music commands to the repo. If you want music, please comment down here and let me know or you can suggest any feature by commenting the feature name an a description for it! (I cannot surely say that your suggested feature will be added or not, so please don't mind if your suggestion was declined!)

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.