BlueDevelopersInc / DiscordSRVUtils

A DiscordSRV addon that adds more useful features to the bot
http://discordsrvutils.xyz/
GNU General Public License v3.0
25 stars 9 forks source link

[Feature Request] Custom status message that not `status-online.json` nor `status-offline.json` #147

Open cupang-afk opened 1 year ago

cupang-afk commented 1 year ago

Is your feature request related to a problem? Please describe. _

Describe the solution you'd like a custom messages.json that got refreshed every n times just like status-online.json and status-offline.json this custom message can be setup through discord slash command like /status

Describe alternatives you've considered _

Additional context

BlueTree242 commented 1 year ago

Is your feature request related to a problem? Please describe. _

Describe the solution you'd like a custom messages.json that got refreshed every n times just like status-online.json and status-offline.json this custom message can be setup through discord slash command like /status

Describe alternatives you've considered _

Additional context

  • useful for leaderboard on discord
  • idk how to make the issue title (feel free to change that)

you mean multiple status messages basically? that was suggested before tho

PhoenixCodingStuff commented 1 year ago

This is a nice feature. However might have to keep discord rate limits in mind if this gets implemented.

cupang-afk commented 1 year ago

you mean multiple status messages basically? that was suggested before tho

yes

I can't seem to find any issues related to the suggestion you mentioned sorry if this is a duplicate

This is a nice feature. However might have to keep discord rate limits in mind if this gets implemented.

true, that is why i wrote "refreshed every n times just like status-online.json and status-offline.json" because we can set those update delay in status.yml

which mine was like this

# Events to update the status message on.
update_events:
  - 'org.bukkit.event.player.PlayerJoinEvent'
  - 'org.bukkit.event.player.PlayerQuitEvent'
# Delay to update the status message in seconds. Keep in mind discord has rate limits
update_delay: 300 # 5 minutes
BlueTree242 commented 1 year ago

why do you even need that?

cupang-afk commented 1 year ago

why do you even need that?

for leaderboard ?

BlueTree242 commented 1 year ago

there is /leaderboard command if you mean leveling

cupang-afk commented 1 year ago

there is /leaderboard command if you mean leveling

not that, i mean the custom one that i set up with another plugin like ajleaderboards (using placeholderapi)

for example i can make discord embed message that show top 10 most death player like that

and its not limited to leaderboard only maybe someone can use it to show recent ban status something like that

and this message will get refreshed, so i can setup dedicated text-channel for that message

BlueTree242 commented 1 year ago

Did you manage to already make a message tho?

cupang-afk commented 1 year ago

Did you manage to already make a message tho?

using status-online.json yeah, but its too much message to show in one embed message (and not the right place to show because im using #server-status channel for that)

example below are top 5 death leaderboard using status-online.json (cropped because i have long message) as my comment above, status.yml has update_events, and for example in this top 5 death leaderboard i can use PlayerDeathEvent to trigger update for this leaderboard (its a bad idea because discord has rate limit) that is why i also be able to set this leaderboard to be updated every 10 minutes or so using update_delay

image

using custom message.json however, i can set what to be embeded in this message,

for example i want to set top 5 death in #leaderboard channel and top 5 donator in #donator channel and both message have their settings for update/refresh similar to status.yml

the custom message.json itself can have custom name for example custom-message-top5death.json or custom-message-top5donator.json with their own .yml config

i know this is somewhat hard to implement so take your time or just drop this feature requests :)

BlueTree242 commented 1 year ago

It's not hard to implement, it's just that i am busy, i will add that in the next next version (next in a few days)

cupang-afk commented 1 year ago

It's not hard to implement, it's just that i am busy, i will add that in the next next version (next in a few days)

okay, i'll wait then