Skip to content

Discord Logging

Discord Logging

安全地帯の作成編集削除をカラーコード付きの埋め込みメッセージとしてDiscordチャンネルに送信できるため、誰が何を変更したかをいつでも把握できます。

Enable it

DiscordのWebhook URLを貼り付けます。URLを空にするとログ機能が完全に無効化され、何も送信されません。

shared/config/general.lua
Config.Webhook = {
    url     = '',                 -- paste your Discord webhook URL here to enable
    botName = 'BUPA Safezones',
    avatar  = '',                 -- optional image URL for the bot avatar
    colors  = {
        create = 3066993,         -- green
        edit   = 3447003,         -- blue
        delete = 15158332,        -- red
    },
}
Field Purpose
url The Discord webhook URL. Empty = logging off.
botName The username the embed is posted under.
avatar Optional avatar image URL for the bot.
colors.create Embed colour for a newly created zone (default green).
colors.edit Embed colour for an edited zone (default blue).
colors.delete Embed colour for a deleted zone (default red).

What each embed logs

作成 / 編集の埋め込みメッセージに含まれる情報:

  • Zone — ゾーンの名前(ラベル)。
  • Admin — 変更を行ったプレイヤー名とサーバーID。
  • Points — ゾーンが持つポリゴンのポイント数。
  • Jobs — ホワイトリストに登録されたジョブと最低グレード、または Everyone
  • Active rules — 現在そのゾーンで有効になっているすべてのルールのリスト。
  • Identifiers — 管理者の discord: および license: 識別子。
  • Timestamp — 日付/時刻とリソース名が含まれるフッター。

削除の埋め込みメッセージは、ゾーン名、管理者、および識別子という重要な情報のみに絞られます。

すべてのWebhookメッセージは、ox:localeの設定に関わらず英語で送信されます。