thecatcore / Fabric---Discord-Link

MIT License
75 stars 31 forks source link

Make discord channel topic configurable #110

Closed kwvanderlinde closed 4 years ago

kwvanderlinde commented 4 years ago

Is your feature request related to a problem? The configuration supports the "customChannelDescription" flag to automatically update the discord topic every few minutes. But there isn't anything "custom" about the description as the format is hardcoded to look like this:

Playercount : 3/20,
Uptime : 120h 1m 24s

The suggestion The channel description should support a custom format string that is used to generate the actual channel topic that gets set. Various placeholders can be used in the same way as for custom messages. The set of placeholders should include:

For parity with current behaviour, the default format string should be "Playercount : %playercount/%maxplayercount, Uptime : %uptime". This format can be modified by changing value of minecraftToDiscord.messages.channelDescription in fdlink.json.

Alternatives Since the topic string is hardcoded, there are no alternatives to achieving a custom channel topic with dynamic parameters.

thecatcore commented 4 years ago

Implemented in 0.7.9: