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

[Feature] Persistent player count channel #42

Closed
napei opened this issue Jan 15, 2022 · 11 comments
Closed

[Feature] Persistent player count channel #42

napei opened this issue Jan 15, 2022 · 11 comments
Labels
enhancement New feature or request

Comments

@napei
Copy link

napei commented Jan 15, 2022

Would be nice to have a persistent locked voice channel in the server, that updates every second or so with the online player count. A lot of other bots do this with discord member counts. Potentially this could also be dynamic like the status messages.

Format could be: Players Online: {playercount}

Example:
image

@napei napei added the enhancement New feature or request label Jan 15, 2022
@zfbx
Copy link
Owner

zfbx commented Jan 15, 2022

That's actually extremely easy to do with an addon module, I'll throw one together real quick as an example

@zfbx
Copy link
Owner

zfbx commented Jan 15, 2022

3f3c11c there you go, just drop that in your server/addons folder with the channel id you want updated and it'll do exactly like you suggested

@napei
Copy link
Author

napei commented Jan 15, 2022

3f3c11c there you go, just drop that in your server/addons folder with the channel id you want updated and it'll do exactly like you suggested

That's awesome, thank you for that. Is zdiscord:ready not implemented or do I need to raise that myself. I can't find any other references to it (not working as that event isn't called).

@zfbx
Copy link
Owner

zfbx commented Jan 15, 2022

that was added in this commit f47074d

@napei
Copy link
Author

napei commented Jan 15, 2022

Ah I see. Not in the latest release.

Is it in a safe state to use djs instead of a release?

@zfbx
Copy link
Owner

zfbx commented Jan 15, 2022

Ohh yes sorry, I haven't built a release in a little bit, yes the main branch is always stable. I'll get a release built also

@napei
Copy link
Author

napei commented Jan 15, 2022

Awesome. Thanks :)

@napei
Copy link
Author

napei commented Jan 15, 2022

Thanks for that. All working now 😄 https://github.com/zfbx/zdiscord/releases/tag/v7.1.0

@napei napei closed this as completed Jan 15, 2022
@napei
Copy link
Author

napei commented Jan 15, 2022

@zfbx just a PSA, apparently there is a very strong rate limit on channel name changes.

https://discord.com/channels/613425648685547541/697138785317814292/715995470048264233

image

@zfbx
Copy link
Owner

zfbx commented Jan 15, 2022

Oh damn.. well figured they'd do that eventually.. that's brutal though 10 whole minutes.. used to be way less, guess people abused it too much :( that's unfortunate. if desired could do the same with editing a message in a channel

@zfbx
Copy link
Owner

zfbx commented Jan 15, 2022

Pushed a hotfix and updated the release download so other's don't run into that, thank you very much for pointing that out ❤️

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

No branches or pull requests

2 participants