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

Discord status to show online players #629

Open
rjclarkewp007 opened this issue May 18, 2021 · 1 comment
Open

Discord status to show online players #629

rjclarkewp007 opened this issue May 18, 2021 · 1 comment
Labels
enhancement New feature or request hacktoberfest

Comments

@rjclarkewp007
Copy link

Add a custom status option to the Discord bot to display the current online players on the server.

@rjclarkewp007 rjclarkewp007 added the enhancement New feature or request label May 18, 2021
@niekcandaele
Copy link
Member

niekcandaele commented May 18, 2021

So filling this out with some additional info:

  • This should be a configurable option. For public instances, rotating the Discord bot status is not feasible. The Discord bot status is global, so having this info rotate for hundreds of servers is just a no-go. For self-hosted instances, this is a nice feature

There's already some logic for rotating info here: https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/api/hooks/discordBot/index.js#L101-L135

First thoughts would be to have an if statement,
if it's a selfhosted instance => Get player data continously and update status
if not => do the logic that's there now.

You can use the env var CSMM_PRIVATE_INSTANCE for that if check probably. It doesn't 100% mean it's a self hosted instance, but should be close enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants