Giter VIP home page Giter VIP logo

reaction-roles's Issues

cant get it to work

Error: Cannot find module 'moment-duration-format'
Require stack:

  • C:\Reactbot\events\message\message.js
  • C:\Reactbot\structures\Util.js
  • C:\Reactbot\bot.js
  • C:\Reactbot\index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object. (C:\Reactbot\events\message\message.js:10:1)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Util.loadEvents (C:\Reactbot\structures\Util.js:82:17) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Reactbot\events\message\message.js',
    'C:\Reactbot\structures\Util.js',
    'C:\Reactbot\bot.js',
    'C:\Reactbot\index.js'
    ]
    }

MongoDB

I spent an hour looking for the "mongodb_url" but on cloud.mongodb.com i cant figure out how to find it, sorry for the issue request.

Mongodb url

LOADED BOT!
(node:4520) UnhandledPromiseRejectionWarning: Error: Cannot find module 'moment-duration-format'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/app/events/message/message.js:10:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Util.loadEvents (/app/structures/Util.js:82:17)
(node:4520) 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(). (rejection id: 1)
(node:4520) [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.
(node:4520) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/
at NativeConnection.Connection.openUri (/rbd/pnpm-volume/87c8fa52-0634-4d1e-acc6-6bddb8388563/node_modules/.registry.npmjs.org/mongoose/5.13.9/node_modules/mongoose/lib/connection.js:846:32)
at _mongoose._promiseOrCallback.cb (/rbd/pnpm-volume/87c8fa52-0634-4d1e-acc6-6bddb8388563/node_modules/.registry.npmjs.org/mongoose/5.13.9/node_modules/mongoose/lib/index.js:351:10)
at Promise (/rbd/pnpm-volume/87c8fa52-0634-4d1e-acc6-6bddb8388563/node_modules/.registry.npmjs.org/mongoose/5.13.9/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5)
at new Promise ()
at promiseOrCallback (/rbd/pnpm-volume/87c8fa52-0634-4d1e-acc6-6bddb8388563/node_modules/.registry.npmjs.org/mongoose/5.13.9/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback (/rbd/pnpm-volume/87c8fa52-0634-4d1e-acc6-6bddb8388563/node_modules/.registry.npmjs.org/mongoose/5.13.9/node_modules/mongoose/lib/index.js:1149:10)
at Mongoose.connect (/rbd/pnpm-volume/87c8fa52-0634-4d1e-acc6-6bddb8388563/node_modules/.registry.npmjs.org/mongoose/5.13.9/node_modules/mongoose/lib/index.js:350:20)
at botClient.start (/app/bot.js:67:14)
at Object. (/app/index.js:17:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
(node:4520) 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(). (rejection id: 2)

Reaction Roles Problem

On creation the emoji its adding and everything but the user cant recieve the role on reaction

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.