Giter Club home page Giter Club logo

Comments (20)

superJK92iscool avatar superJK92iscool commented on June 18, 2024

Same when running

node bot/Cluster.js

in the main dir

from discord-hybrid-sharding.

meister03 avatar meister03 commented on June 18, 2024

which hybrid sharding version are you using?

from discord-hybrid-sharding.

meister03 avatar meister03 commented on June 18, 2024

I think you are using the githubs readme, which is the new typescript rewrite

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

I think you are using the githubs readme, which is the new typescript rewrite

I got it to work by using the master branch's readme file but when I start the bot I get

error: tuple concurrently updated
1|cluster  |     at Parser.parseErrorMessage (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:287:98)
1|cluster  |     at Parser.handlePacket (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:126:29)
1|cluster  |     at Parser.parse (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:39:38)
1|cluster  |     at Socket.<anonymous> (C:\Users\super\form-fox\node_modules\pg-protocol\dist\index.js:11:42)
1|cluster  |     at Socket.emit (node:events:527:28)
1|cluster  |     at addChunk (node:internal/streams/readable:315:12)
1|cluster  |     at readableAddChunk (node:internal/streams/readable:289:9)
1|cluster  |     at Socket.Readable.push (node:internal/streams/readable:228:10)
1|cluster  |     at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
1|cluster  |   length: 83,
1|cluster  |   severity: 'ERROR',
1|cluster  |   code: 'XX000',
1|cluster  |   detail: undefined,
1|cluster  |   hint: undefined,
1|cluster  |   position: undefined,
1|cluster  |   internalPosition: undefined,
1|cluster  |   internalQuery: undefined,
1|cluster  |   where: undefined,
1|cluster  |   schema: undefined,
1|cluster  |   table: undefined,
1|cluster  |   column: undefined,
1|cluster  |   dataType: undefined,
1|cluster  |   constraint: undefined,
1|cluster  |   file: 'heapam.c',
1|cluster  |   line: '4271',
1|cluster  |   routine: 'simple_heap_update'
1|cluster  | }
1|cluster  | error: tuple concurrently updated
1|cluster  |     at Parser.parseErrorMessage (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:287:98)
1|cluster  |     at Parser.handlePacket (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:126:29)
1|cluster  |     at Parser.parse (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:39:38)
1|cluster  |     at Socket.<anonymous> (C:\Users\super\form-fox\node_modules\pg-protocol\dist\index.js:11:42)
1|cluster  |     at Socket.emit (node:events:527:28)
1|cluster  |     at addChunk (node:internal/streams/readable:315:12)
1|cluster  |     at readableAddChunk (node:internal/streams/readable:289:9)
1|cluster  |     at Socket.Readable.push (node:internal/streams/readable:228:10)
1|cluster  |     at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
1|cluster  |   length: 83,
1|cluster  |   severity: 'ERROR',
1|cluster  |   code: 'XX000',
1|cluster  |   detail: undefined,
1|cluster  |   hint: undefined,
1|cluster  |   position: undefined,
1|cluster  |   internalPosition: undefined,
1|cluster  |   internalQuery: undefined,
1|cluster  |   where: undefined,
1|cluster  |   schema: undefined,
1|cluster  |   table: undefined,
1|cluster  |   column: undefined,
1|cluster  |   dataType: undefined,
1|cluster  |   constraint: undefined,
1|cluster  |   file: 'heapam.c',
1|cluster  |   line: '4271',
1|cluster  |   routine: 'simple_heap_update'
1|cluster  | }
1|cluster  | error: tuple concurrently updated
1|cluster  |     at Parser.parseErrorMessage (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:287:98)
1|cluster  |     at Parser.handlePacket (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:126:29)
1|cluster  |     at Parser.parse (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:39:38)
1|cluster  |     at Socket.<anonymous> (C:\Users\super\form-fox\node_modules\pg-protocol\dist\index.js:11:42)
1|cluster  |     at Socket.emit (node:events:527:28)
1|cluster  |     at addChunk (node:internal/streams/readable:315:12)
1|cluster  |     at readableAddChunk (node:internal/streams/readable:289:9)
1|cluster  |     at Socket.Readable.push (node:internal/streams/readable:228:10)
1|cluster  |     at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
1|cluster  |   length: 83,
1|cluster  |   severity: 'ERROR',
1|cluster  |   code: 'XX000',
1|cluster  |   detail: undefined,
1|cluster  |   hint: undefined,
1|cluster  |   position: undefined,
1|cluster  |   internalPosition: undefined,
1|cluster  |   internalQuery: undefined,
1|cluster  |   where: undefined,
1|cluster  |   schema: undefined,
1|cluster  |   table: undefined,
1|cluster  |   column: undefined,
1|cluster  |   dataType: undefined,
1|cluster  |   constraint: undefined,
1|cluster  |   file: 'heapam.c',
1|cluster  |   line: '4271',
1|cluster  |   routine: 'simple_heap_update'
1|cluster  | }

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

And also, the one thing that is probably unavoidable is nodejs windows in the background (I am on windows)

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

I think you are using the githubs readme, which is the new typescript rewrite

I got it to work by using the master branch's readme file but when I start the bot I get

error: tuple concurrently updated

1|cluster  |     at Parser.parseErrorMessage (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:287:98)

1|cluster  |     at Parser.handlePacket (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:126:29)

1|cluster  |     at Parser.parse (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:39:38)

1|cluster  |     at Socket.<anonymous> (C:\Users\super\form-fox\node_modules\pg-protocol\dist\index.js:11:42)

1|cluster  |     at Socket.emit (node:events:527:28)

1|cluster  |     at addChunk (node:internal/streams/readable:315:12)

1|cluster  |     at readableAddChunk (node:internal/streams/readable:289:9)

1|cluster  |     at Socket.Readable.push (node:internal/streams/readable:228:10)

1|cluster  |     at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {

1|cluster  |   length: 83,

1|cluster  |   severity: 'ERROR',

1|cluster  |   code: 'XX000',

1|cluster  |   detail: undefined,

1|cluster  |   hint: undefined,

1|cluster  |   position: undefined,

1|cluster  |   internalPosition: undefined,

1|cluster  |   internalQuery: undefined,

1|cluster  |   where: undefined,

1|cluster  |   schema: undefined,

1|cluster  |   table: undefined,

1|cluster  |   column: undefined,

1|cluster  |   dataType: undefined,

1|cluster  |   constraint: undefined,

1|cluster  |   file: 'heapam.c',

1|cluster  |   line: '4271',

1|cluster  |   routine: 'simple_heap_update'

1|cluster  | }

1|cluster  | error: tuple concurrently updated

1|cluster  |     at Parser.parseErrorMessage (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:287:98)

1|cluster  |     at Parser.handlePacket (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:126:29)

1|cluster  |     at Parser.parse (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:39:38)

1|cluster  |     at Socket.<anonymous> (C:\Users\super\form-fox\node_modules\pg-protocol\dist\index.js:11:42)

1|cluster  |     at Socket.emit (node:events:527:28)

1|cluster  |     at addChunk (node:internal/streams/readable:315:12)

1|cluster  |     at readableAddChunk (node:internal/streams/readable:289:9)

1|cluster  |     at Socket.Readable.push (node:internal/streams/readable:228:10)

1|cluster  |     at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {

1|cluster  |   length: 83,

1|cluster  |   severity: 'ERROR',

1|cluster  |   code: 'XX000',

1|cluster  |   detail: undefined,

1|cluster  |   hint: undefined,

1|cluster  |   position: undefined,

1|cluster  |   internalPosition: undefined,

1|cluster  |   internalQuery: undefined,

1|cluster  |   where: undefined,

1|cluster  |   schema: undefined,

1|cluster  |   table: undefined,

1|cluster  |   column: undefined,

1|cluster  |   dataType: undefined,

1|cluster  |   constraint: undefined,

1|cluster  |   file: 'heapam.c',

1|cluster  |   line: '4271',

1|cluster  |   routine: 'simple_heap_update'

1|cluster  | }

1|cluster  | error: tuple concurrently updated

1|cluster  |     at Parser.parseErrorMessage (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:287:98)

1|cluster  |     at Parser.handlePacket (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:126:29)

1|cluster  |     at Parser.parse (C:\Users\super\form-fox\node_modules\pg-protocol\dist\parser.js:39:38)

1|cluster  |     at Socket.<anonymous> (C:\Users\super\form-fox\node_modules\pg-protocol\dist\index.js:11:42)

1|cluster  |     at Socket.emit (node:events:527:28)

1|cluster  |     at addChunk (node:internal/streams/readable:315:12)

1|cluster  |     at readableAddChunk (node:internal/streams/readable:289:9)

1|cluster  |     at Socket.Readable.push (node:internal/streams/readable:228:10)

1|cluster  |     at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {

1|cluster  |   length: 83,

1|cluster  |   severity: 'ERROR',

1|cluster  |   code: 'XX000',

1|cluster  |   detail: undefined,

1|cluster  |   hint: undefined,

1|cluster  |   position: undefined,

1|cluster  |   internalPosition: undefined,

1|cluster  |   internalQuery: undefined,

1|cluster  |   where: undefined,

1|cluster  |   schema: undefined,

1|cluster  |   table: undefined,

1|cluster  |   column: undefined,

1|cluster  |   dataType: undefined,

1|cluster  |   constraint: undefined,

1|cluster  |   file: 'heapam.c',

1|cluster  |   line: '4271',

1|cluster  |   routine: 'simple_heap_update'

1|cluster  | }

@meister03 Do you know how to fix this

from discord-hybrid-sharding.

meister03 avatar meister03 commented on June 18, 2024

this bc the lib you are using

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

What lib is it though?

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

I fixed it by running

npm install tuple

but now the status doesn't update
bot.txt
is the bot.js file as a .txt file because github doesn't let you upload .js files

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

The status part start on line 81

from discord-hybrid-sharding.

meister03 avatar meister03 commented on June 18, 2024

@superJK92iscool you leaked your token, would regenerate it

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

I already did

from discord-hybrid-sharding.

meister03 avatar meister03 commented on June 18, 2024

When it works without the package you are using, then it is not a issue of Hybrid Sharding

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

but now the status doesn't update bot.txt is
the bot.js file as a .txt file because github doesn't let you upload .js files

What about this part it stopped working when I a bit after I adjusted the time between status the changing?

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024
const Cluster = require('discord-hybrid-sharding');

const manager = new Cluster.Manager(`${__dirname}/bot.js`, {
    totalShards: 8, // or 'auto'
    /// Check below for more options
    shardsPerClusters: 4,
    totalClusters: 4,
    mode: 'process', // you can also choose "worker"
    token: (process.env.TOKEN),
});

manager.on('clusterCreate', cluster => console.log(`Launched Cluster ${cluster.id}`));
manager.spawn({ timeout: -1 });

Is the Cluster.js file's code (Fixed it so it won't show the token)

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

@meister03

from discord-hybrid-sharding.

meister03 avatar meister03 commented on June 18, 2024

Could you join the discord server please, can assist you there faster

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

I am my username is superJK92#0001

from discord-hybrid-sharding.

superJK92iscool avatar superJK92iscool commented on June 18, 2024

@meister03 ^^^

from discord-hybrid-sharding.

anish2dev avatar anish2dev commented on June 18, 2024

@meister03 ^^^

If you are done then close it

from discord-hybrid-sharding.

Related Issues (20)

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.