Configuration

Configuration

After you have installed JD_logs you can open the config file and change the settings to your needs. You will find the config file in the config folder.

When you just installed JD_logs your config should look like this:

{
    "prefix":"!jdlogs ",
    "token": "",
    "guildId": "",
    "TimezoneOffset": "+00:00",
    "language": "en",

    "NameChangePerms": "jd.staff",
    "screenshotPerms": "jd.staff",

    "allLogs": true,

    "weaponLog": true,
    "damageLog": true,
    "deathLog": true,

    "playerId": true,
    "postals": true,
    "playerHealth": true,
    "playerArmor": true,
    "playerPing": true,

    "ip": true,
    "steamUrl": true,
    "discordId": {
        "enabled": true,
        "spoiler": true
    },
    "steamId": {
        "enabled": true,
        "spoiler": true
    },
    "license": {
        "enabled": true,
        "spoiler": true
    },

    "WebhookResetMessage": false,

    "WeaponsNotLogged": [
        "WEAPON_SNOWBALL",
        "WEAPON_FIREEXTINGUISHER",
        "WEAPON_PETROLCAN"
    ],

    "DiscordAcePerms": {
        "DISCORD_ROLE_ID": {
            "groups": ["group.admin", "group.mod"],
            "perms": ["jd.staff"]
        }
    }
}

Config settings:

Basic settings.

SettingDefault valueUsage
prefix!This is the prefix for using the bot commands.
token""This is the bot token to login on discord. How to get a bot token?

Ace permission settings.

SettingDefault valueUsage
nameChangePerms"jd.staff"This is the ace permission needed to see the name change live in-game chat.
screenshotPerms"jd.staff"This is the ace permission needed to use the /screenshot [id] command.

Additional settings

SettingDefault valueUsage
All LogstrueIf this has been set to true the resource will try to send every single log made to the all channel in the channels.json
weaponLogtrueWith this setting you can enable or disable shooting logs.
damageLogtrueWith this setting you can enable or disable damage logs.
deathLogtrueWith this setting you can enable or disable death logs.

Player details

SettingDefault valueUsage
playerIdtrueIf this has been set to true the players server id will be displayed in the player details.
steamIdtrueIf this has been set to true the steam hex will be displayed in the player details.
steamUrltrueIf this has been set to true the steam profile url will be displayed in the player details.
discordIdtrueIf this has been set to true the discord id will be displayed in the player details.
licensetrueIf this has been set to true the players license identifier will be displayed in the player details.
iptrueIf this has been set to true the players ip will be displayed in the player details.
playerPingtrueIf this has been set to true the players ping will be displayed in the player details.
postalstrueIf this has been set to true a postal will be included in the embeds.
playerHealthtrueIf this has been set to true the players health level will be displayed in the player details.
playerArmortrueIf this has been set to true the players armor level will be displayed in the player details.

Not logged weapons

SettingDefault valueUsage
WeaponsNotLogged["WEAPON_SNOWBALL", "WEAPON_FIREEXTINGUISHER", "WEAPON_PETROLCAN"]These weapons will not be logged in the shooting channel.

DiscordAcePerms

SettingDefault valueUsage
DiscordRoleId"ROLEID": { "groups": [], "perms": []}Add permisions based on discord roles.