Git Product home page Git Product logo

calpheonjs's People

Contributors

alancuriel avatar marceloclp avatar

Stargazers

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

Watchers

 avatar  avatar

calpheonjs's Issues

Cannot find module ./query

`[2020-11-29 16:17:35]: CMD [CMD] Bot Owner Ayeven (273097175452614666) ran command calpheon
[2020-11-29 16:17:35]: ERROR Unhandled rejection: Error: Cannot find module './query'
Require stack:

  • /home/runner/ayevenbot/node_modules/calpheonjs/dist/index.js
  • /home/runner/ayevenbot/commands/calpheon.js
  • /home/runner/ayevenbot/modules/functions.js
  • /home/runner/ayevenbot/index.js
    Error: Cannot find module './query'
    Require stack:
  • /home/runner/ayevenbot/node_modules/calpheonjs/dist/index.js
  • /home/runner/ayevenbot/commands/calpheon.js
  • /home/runner/ayevenbot/modules/functions.js
  • /home/runner/ayevenbot/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (/home/runner/ayevenbot/node_modules/calpheonjs/dist/index.js:14:14)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Module.require (internal/modules/cjs/loader.js:1025:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/runner/ayevenbot/node_modules/calpheonjs/dist/index.js',
    '/home/runner/ayevenbot/commands/calpheon.js',
    '/home/runner/ayevenbot/modules/functions.js',
    '/home/runner/ayevenbot/index.js'
    ]
    }`
    I'm not sure if this only happen if you using it on repl.it. I have not tested on development platform/own pc. I have not tried to manually upload the necessary folder to my repl.it project either. I have tried the older bdo-scrapper and it working on my repl.it

JSON output too long (?)

Attempting to fetch 715005 returns an error.

const itemFetch = await Item(itemID); // was also tried with Equipment
console.log(itemFetch);
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Equipment.parseEnchantmentArray (node_modules\calpheonjs\dist\scraper\builders\item\equipment.builder.js:110:34)
    at Equipment.get (node_modules\calpheonjs\dist\scraper\builders\item\equipment.builder.js:186:29)
    at Equipment.get (node_modules\calpheonjs\dist\scraper\builders\item\equipment.builder.js:178:25)
    at Equipment.<anonymous> (node_modules\calpheonjs\dist\scraper\builders\item\equipment.builder.js:320:139)
    at step (node_modules\calpheonjs\dist\scraper\builders\item\equipment.builder.js:76:23)
    at Object.next (node_modules\calpheonjs\dist\scraper\builders\item\equipment.builder.js:57:53)
    at fulfilled (node_modules\calpheonjs\dist\scraper\builders\item\equipment.builder.js:48:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

V2 ts paths in dev environment not being compiled correctly

In the v2 branch. When you compile/build the project no errors are outputted. But, when you try to call the exported modules, they are not found. This is because the js complied exports try to use the '@' directory which is present when in the dev environment. I believe this is the issue. But not sure how to fix it since I lack typescript experience. Any help would be appreciated.

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.