GithubHelp home page GithubHelp logo

brandon-the-dev / hydra Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 22.0 354 KB

Very Simple Discord Economy Bot

Home Page: https://discord.com/oauth2/authorize?client_id=679710920334639115&scope=bot&permissions=19456

License: Apache License 2.0

JavaScript 99.98% Procfile 0.02%
discord discord-bot discord-js economy

hydra's Introduction

hydra's People

Contributors

brandon-the-dev 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

Watchers

 avatar  avatar  avatar  avatar

hydra's Issues

Issue setting up the bot

I did the .env file added token and monodb uri then too some errors..

(node:227) UnhandledPromiseRejectionWarning: MongooseError: The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.
at NativeConnection.Connection.openUri (/home/runner/UsableNoxiousParallelcompiler/node_modules/mongoose/lib/connection.js:651:11)
at /home/runner/UsableNoxiousParallelcompiler/node_modules/mongoose/lib/index.js:341:10
at /home/runner/UsableNoxiousParallelcompiler/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
at new Promise ()
at promiseOrCallback (/home/runner/UsableNoxiousParallelcompiler/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
at Mongoose.connect (/home/runner/UsableNoxiousParallelcompiler/node_modules/mongoose/lib/index.js:340:10)
at new MongoClient (/home/runner/UsableNoxiousParallelcompiler/src/utils/MongoClient.js:10:18)
at Object. (/home/runner/UsableNoxiousParallelcompiler/src/index.js:5:13)
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 Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
(node:227) 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:227) [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.
[Error: ENOENT: no such file or directory, scandir './src/commands/'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: './src/commands/'
}
/home/runner/UsableNoxiousParallelcompiler/src/utils/handlers/command.js:6
const file = files.filter(f => f.split('.').pop() === 'js');
^

TypeError: Cannot read property 'filter' of undefined
at /home/runner/UsableNoxiousParallelcompiler/src/utils/handlers/command.js:6:28
at FSReqCallback.oncomplete (fs.js:156:23)

[Question]

How can I change the prefix and make it without the need for space?
I tried everything in the message event, changing the args to [0] but still couldn't make it work.

so like how can I change the prefix to % and make the commands work with %help and not with % help

Need Help setting up bot

Can someone and/or the owner help me set up the bot? I've done all the setting up like in the file .env, it has both token and the MONGODB URI. But I can't figure out how to do it. It gives me this error:

(node:155) UnhandledPromiseRejectionWarning: Error: 401 Unauthorized
    at IncomingMessage.<anonymous> (/home/runner/nodeco/node_modules/dblapi.js/src/index.js:118:25)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:155) 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:155) [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:155) UnhandledPromiseRejectionWarning: MongoError: bad auth : Authentication failed.
    at MessageStream.messageHandler (/home/runner/nodeco/node_modules/mongodb/lib/cmap/connection.js:268:20)
    at MessageStream.emit (events.js:314:20)
    at processIncomingData (/home/runner/nodeco/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
    at MessageStream._write (/home/runner/nodeco/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
    at doWrite (_stream_writable.js:403:12)
    at writeOrBuffer (_stream_writable.js:387:5)
    at MessageStream.Writable.write (_stream_writable.js:318:11)
    at TLSSocket.ondata (_stream_readable.js:718:22)
    at TLSSocket.emit (events.js:314:20)
    at addChunk (_stream_readable.js:297:12)
    at readableAddChunk (_stream_readable.js:272:9)
    at TLSSocket.Readable.push (_stream_readable.js:213:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
(node:155) 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)

Someone please help, I'm trying to set this bot up. @Brandon-The-Dev

issue #2

there is a issue atm with the deposit command that should be fixed shortly.

[Suggestion]

Make the cooldowns start only when the commands fully get completed and not when there are missing requirements.
For example, if I do the rob command without mentioning somebody don't start the cooldown from then, but start it only when I mention somebody and the command completes.

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.