Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated/Added some things #130

Closed
wants to merge 14 commits into from
Closed

Updated/Added some things #130

wants to merge 14 commits into from

Conversation

rexjohannes
Copy link
Contributor

  • botname config value
  • example soundcloud id
  • sharding system
  • better debuging
  • status config value
  • update config at readme.md
  • ubuntu install skript (beta) (ubuntu.sh) needs that this pull get merged to work

@rexjohannes
Copy link
Contributor Author

(Tested all - working!)

@JoJoSniper
Copy link

Hi, how do I remove the shard? I recently just removed it and it seems to still be there even running without the shard.js

@rexjohannes
Copy link
Contributor Author

To use no sharding start the bot without shard.js

@JoJoSniper
Copy link

I did but I keep getting this and it keeps repeating
[WS => Shard 0] Heartbeat acknowledged, latency of 40ms.

@SugarD-x
Copy link

SugarD-x commented Sep 5, 2020

Shard 0 should be your own server.

@JoJoSniper
Copy link

How do I stop the repeating console logging of
[WS => Shard 0] Heartbeat acknowledged, latency of 40ms.
though

@rexjohannes
Copy link
Contributor Author

Just remove client.on("debug", (e) => console.info(e)); in index.js

@iiMu7aMMaD
Copy link

iiMu7aMMaD commented Sep 25, 2020

Make the help menu better.
*help: help
*help help: help-help

@paraswtf
Copy link

paraswtf commented Oct 1, 2020

Btw anyone wondering why is it always shard 0, you need to set the main in package.json to shard.js for sharding to work properly...

@iiMu7aMMaD iiMu7aMMaD mentioned this pull request Oct 8, 2020
@Takiyo0
Copy link

Takiyo0 commented Oct 12, 2020

so, we still use node index.js or node shard.js?

@rexjohannes
Copy link
Contributor Author

Use node shard.js if u want to start with sharding

@paraswtf
Copy link

so, we still use node index.js or node shard.js?

So shard.js is basically your manager that wraps the main index.js... so Shard.js has all control over how many instances of index.js (or the main client file) should run... So you have to mention the main file in shard.js which it should run and shard.js will start running your index.js (or the main client file) on its own...
Although the bot is fine without sharding until it reaches 1k+ servers... Wouldn't recommend having that... Coz it would just use up more resources on your server to manage each instance... also note that the bot does not divide the servers on shards equally... it uses a formula to calculate which server goes on which shard which is based on the total shard count and server id... mentioned in the docs on developer portal... So i don't think this is useful on small bots...

@eritislami eritislami closed this Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants