You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Different groups / squadrons have different needs when reporting to Discord. It would be useful to support different formats. For example, a simplified black-and-white format with system titles in bold:
HIP 117865
Celestial Light Brigade : +51 Inf, 808k Bounties
To achieve this would need the following approach:
Rationalise all discord formatting code into a single formatter class, which has two main entry-point methods: get_plain_text() and get_embed_fields().
Initially there will be just one formatter -- the default -- to replicate the current format.
Each method takes an instance of the Activity class as its source data.
Place the formatter class in a subfolder
Add a picker to the preferences screen to allow the formatter to be chosen from all available in the subfolder. Could do this for each Discord channel if we're being completist (maybe for v2?)
Use the selected formatter when posting to Discord.
The text was updated successfully, but these errors were encountered:
Implement `FormatterInterface` base class.
Split out all formatting code from `Activity` to new `DefaultFormatter`.
Start on groundwork for supporting language per webhook.
Relates to #195. Relates to #213.
Different groups / squadrons have different needs when reporting to Discord. It would be useful to support different formats. For example, a simplified black-and-white format with system titles in bold:
To achieve this would need the following approach:
get_plain_text()
andget_embed_fields()
.Activity
class as its source data.The text was updated successfully, but these errors were encountered: