Skip to content

Add structured notification.#1299

Open
MusclePr wants to merge 1 commit intoarkmanager:masterfrom
MusclePr:feature/rich-notifications
Open

Add structured notification.#1299
MusclePr wants to merge 1 commit intoarkmanager:masterfrom
MusclePr:feature/rich-notifications

Conversation

@MusclePr
Copy link
Copy Markdown
Contributor

@MusclePr MusclePr commented Dec 4, 2025

Features

  • Structured notification
    • Add information type parameters append to notify function.
      ex)
      notify $msg 'info'
      notify $msg 'warn'
      notify $msg 'err'
      nofify $msg '#0000ff'
    • Add templates.
      # consoleNotifyTemplate="{local_date} {type}({instance}) {msg}"     # Template for console notifications
      # discordNotifyInfoTemplate='{"embeds": [{"title": "📢 INFO - {msg}", "color": 3447003, "fields": [{"name": "{serverMap}", "value": ""}]}]}'
      # discordNotifyWarnTemplate='{"embeds": [{"title": "⚠️ WARN - {msg}", "color": 15105570, "fields": [{"name": "{serverMap}", "value": ""}]}]}'
      # discordNotifyErrorTemplate='{"embeds": [{"title": "❗ ERROR - {msg}", "color": 15158332, "fields": [{"name": "{serverMap}", "value": ""}]}]}'
      # discordNotifyColorTemplate='{"embeds": [{"color": {color}, "fields": [{"name": "{serverMap}", "value": "{msg}"}]}]}'
      # discordNotifyPlainTemplate='{"content": "[{serverMap}] {msg}"}'

@MusclePr MusclePr force-pushed the feature/rich-notifications branch from 83bb4ab to be5c7e9 Compare December 4, 2025 05:21
@MusclePr MusclePr marked this pull request as ready for review March 2, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant