ARK: Tribe Log Relay

ARK: Tribe Log Relay 1.91

No permission to download

V.UK

New member
Messages
17
Points
3
I meant the --- >@everyone <--- that the webhook puts into Discord. I posted that quote as an example ;)
 
Advertisement

Official Game Server Partner

Lethal

Active member
Plugin Developer
Messages
252
Points
43
I meant the --- >@everyone <--- that the webhook puts into Discord. I posted that quote as an example ;)
Below explains the feature. Discord refers to this as a "mention", I called it "important" and @everyone is the only mention the plugin supports and can be on (true) or off (false).

Keywords: If using "UseKeywordMatching" any keyword detected in a tribe log will send the message to the tribes discord. Keep in mind Keywords are only used for Tribe Discord messages and Admin Discord gets every message. You can add or remove anything from the list you want.
  • Format: "keyword":important
    • "keyword": This can be any text that can appear in the tribe log. I have already included many of them. This is the text that is used to figure out what needs to be sent if using the keywords matching feature.
    • important: Replace the word important with either true or false. If set to true it will add "@everyone" to the discord message effectively pinging users in discord for messages that contain the keyword. If set to false it does not ping users and sends a normal message.
 

V.UK

New member
Messages
17
Points
3
So.... In the config I need this?:

Code:
        "Keywords":{
            "Your Tribe killed "false:true,
            " was killed"false:true,
            " demolished a ":false,
            " claimed ":false,
            " unclaimed ":false,
            " was added to the Tribe!":false,
            " was removed from the Tribe!":false,
            " was auto-decay destroyed!"false:true,
            " starved to death!":true,
            " was destroyed!"false:true,
            " destroyed their ":false,
            "Tamed a":false,
            " was promoted ":false,
            " was demoted ":false,
            " set to Rank Group ":false,
            " uploaded ":false,
            " downloaded ":false,
            " froze ":false,
            " unfroze ":false,
            " destroyed your ":false,
            "Tribe name changed ":false,
            "Tribe owner changed ":false,
            " now online!":false,
            " gone offline!":false,
            " has been born."false:true,
            " has been hatched."false:true
        }
    },
 

V.UK

New member
Messages
17
Points
3
I have a female in my tribe (part of the admins) and she is moaning like f**k that her phone pings when something happens and wants me to stop it I need to stop the @everyone mention in discord. See image below:Capture.PNG
 

Lethal

Active member
Plugin Developer
Messages
252
Points
43
So.... In the config I need this?:

Code:
        "Keywords":{
            "Your Tribe killed "false:true,
            " was killed"false:true,
            " demolished a ":false,
            " claimed ":false,
            " unclaimed ":false,
            " was added to the Tribe!":false,
            " was removed from the Tribe!":false,
            " was auto-decay destroyed!"false:true,
            " starved to death!":true,
            " was destroyed!"false:true,
            " destroyed their ":false,
            "Tamed a":false,
            " was promoted ":false,
            " was demoted ":false,
            " set to Rank Group ":false,
            " uploaded ":false,
            " downloaded ":false,
            " froze ":false,
            " unfroze ":false,
            " destroyed your ":false,
            "Tribe name changed ":false,
            "Tribe owner changed ":false,
            " now online!":false,
            " gone offline!":false,
            " has been born."false:true,
            " has been hatched."false:true
        }
    },
" demolished a ":false,

Will not include @everyone. Anything with True on the end will send @everyone but that setting is server wide for all tribes. Easier to just kick her from Tribe :)

Also these entries are jacked up in your config.. false:true is not a thing

"Your Tribe killed "false:true,
" was killed"false:true,
" was auto-decay destroyed!"false:true,
" was destroyed!"false:true,
" has been born."false:true,
" has been hatched."false:true

Try these... if you don't want them to @everyone and again these are server wide settings that affect all tribes.
"Your Tribe killed ":false,
" was killed":false,
" was auto-decay destroyed!":false,
" was destroyed!":false,
" has been born.":false,
" has been hatched.":false
 

V.UK

New member
Messages
17
Points
3
yeah that's what i am trying to explain to you. I want those active but not for the plugin to @everyone on discord. I just want it to silent post in the channel not mention anyone.
 

Lethal

Active member
Plugin Developer
Messages
252
Points
43
yeah that's what i am trying to explain to you. I want those active but not for the plugin to @everyone on discord. I just want it to silent post in the channel not mention anyone.
Did you read what I posted? If the keyword is in the list it is sent to discord true/false only flags that keyword to @everyone or not. I don't know how else to explain this to you.
 

Faka

Member
Plugin Developer
Donators
Messages
71
Points
8
MySQL integration seems to work bad after server restart and tribes have to do /tlr again. Changed to sqlite and issue was resolved.
 

Lethal

Active member
Plugin Developer
Messages
252
Points
43
MySQL integration seems to work bad after server restart and tribes have to do /tlr again. Changed to sqlite and issue was resolved.
I'll look over the MySQL code to check for any differences that may cause an issue. However the only thing /tlr does is add a webhook to the database which must be done from each map on a cluster because Tribe Id's are different on each map. Can you confirm this issue on a single server where the webhook would be disappearing?
 

Lethal

Active member
Plugin Developer
Messages
252
Points
43
MySQL integration seems to work bad after server restart and tribes have to do /tlr again. Changed to sqlite and issue was resolved.
I found the issue and have released version 1.5

@Tiamo Are you using MySQL by chance? If so this is probably what was causing the issues you posted about as well.
 
Last edited:

Faka

Member
Plugin Developer
Donators
Messages
71
Points
8
Good job man, switched to sqlite anyways since there is no point in sharing a database, tribe ids are different. I appreciate your work <3
 

Tiamo

Member
Donators
Messages
157
Points
18
Website
www.arkade.online
Yes, I was using mySQL, I will update the new version on Monday. I try not to do updates on the weekend. :) I'll probably switch to sqlite if there's no benefits to mySql, right?
 

Vysse

Member
Donators
Messages
83
Points
8
For some reason the log on discord always uses ServerName for the name no matter what I change it to.
 

Lethal

Active member
Plugin Developer
Messages
252
Points
43
Yes, I was using mySQL, I will update the new version on Monday. I try not to do updates on the weekend. :) I'll probably switch to sqlite if there's no benefits to mySql, right?
For ARK no benefit for using MySQL currently.
 

Lethal

Active member
Plugin Developer
Messages
252
Points
43
For some reason the log on discord always uses ServerName for the name no matter what I change it to.
Change the name in the config.json that is the only place the name in the logs come from.
 

Vysse

Member
Donators
Messages
83
Points
8
Change the name in the config.json that is the only place the name in the logs come from.
Code:
{
  "General": {
    "ServerName": "Ragnarok",
    "ForceTribeMembership": true
  },
  "Mysql": {
    "UseMysql": true,
    "MysqlHost": "0.0.0.0",
    "MysqlUser": "tribelogrelay",
    "MysqlPass": "-----",
    "MysqlDB": "tribelogrelay"
  },
  "Messages": {
    "Sender": "Tribe Log Relay",
    "ChangedWebhook": "Successfully set your tribes Discord Webhook!",
    "Invalid": "<RichColor Color=\"1, 0, 0, 1\">Webhook appears to be an invalid discord webhook!</>",
    "Error": "<RichColor Color=\"1, 0, 0, 1\">Webhook did not get updated, try again!</>",
    "NotAllowed": "<RichColor Color=\"1, 0, 0, 1\">Only the tribe owner is allowed to use this feature!</>",
    "NotFound": "<RichColor Color=\"1, 0, 0, 1\">Unable to locate your tribe entry! Contact the server admin.</>",
    "Usage": "\nTribe Owners Only!\nUsage: /tlr <discord webhook>\nVisit https://bit.ly/33Jw8i5 for information about Discord Webhooks.",
    "ForceTribe": "Tribe membership is required. You have been added to your own tribe."
  },
  "Commands": {
    "CommandText": "/TLR",
    "UsePermissions": true,
    "PermissionName": "TLR.Add"
  },
  "Discord": {
    "UseAdminLogging": true,
    "AdminDiscordWebhook": "------",
    "DiscordLinkFormat": "https://discordapp.com/api/webhooks/[^/]+/[^/]+",
    "DiscordPingCooldown": 0,
    "UseTribeID": true,
    "TribeFormat": "{1}:{0}"
  },
  "Detection": {
    "DetectCyroUnfreeze": true,
    "DetectTribenameChange": true,
    "DetectTribeOwnerChange": true,
    "DetectCyrofreeze": true,
    "CryoItems": "PrimalItem_WeaponEmptyCryopod_C,SoulTrap_DS_C",
    "DetectTribeLogin": true,
    "DetectTribeLogoff": true
  },
  "KeywordMatching": {
    "UseKeywordMatching": true,
    "Keywords": {
      "Your Tribe killed ": false,
      " was killed": false,
      " demolished a ": false,
      " claimed ": false,
      " unclaimed ": false,
      " was added to the Tribe!": false,
      " was removed from the Tribe!": false,
      " was auto-decay destroyed!": false,
      " starved to death!": false,
      " was destroyed!": false,
      " destroyed their ": false,
      "Tamed a": false,
      " was promoted ": false,
      " was demoted ": false,
      " set to Rank Group ": false,
      " uploaded ": false,
      " downloaded ": false,
      " froze ": false,
      " unfroze ": false,
      " destroyed your ": false,
      "Tribe name changed ": false,
      "Tribe owner changed ": false,
      " now online!": false,
      " gone offline!": false,
      " has been born.": false,
      " has been hatched.": false
    }
  },
  "Localization": {
    "TribeOwnerChanged": "Tribe owner changed from {0} to {1}",
    "TribeNameChanged": "Tribe name changed to ({0})",
    "UnCryo": "{0} unfroze {1}",
    "Cryo": "{0} froze {1}",
    "Login": "{0} is now online!",
    "Logoff": "{0} has gone offline!",
    "NewBaby": "'Baby {0}' has been born.",
    "EggHatched": "'{0}' has been hatched."
  },
  "AdminKeywordMatching": {
    "UseKeywordMatching": true,
    "Keywords": {
      "Your Tribe killed ": false,
      " was killed": false,
      " demolished a ": false,
      " was added to the Tribe!": false,
      " was removed from the Tribe!": false,
      " was destroyed!": false,
      " destroyed their ": false,
      " destroyed your ": false,
      "Tribe name changed ": false,
      "Tribe owner changed ": false
    }
  },
  "Notifications": {
    "NotificationDisplayTime": 10,
    "NotificationScale": 1.3
  }
}
 

Lethal

Active member
Plugin Developer
Messages
252
Points
43
ServerName is what gets put in by default if it didn't read your server name from the config. Use the default config and fill in your values.
 
Last edited:

Vysse

Member
Donators
Messages
83
Points
8
ServerName is what gets put in by default if it didn't read your server name from the config. Use the default config and fill in your values.
This is an edit of the default config with my values put in.
 

shimsham

New member
Messages
2
Points
1
Been having a bit of trouble with the additional logging features. Have noticed it with "Freeze" specifically.

Code:
(S-Ext) (1304270659:Aces) Day 3151, 11:35:  froze Juvenile Managarmr - Lvl 235 (Managarmr)
(S-Ext) (1695372094:Satchel of Richards) Day 3151, 11:35: Cheney trapped: Managarmr Male (Lvl 235 Managarmr)
In this case, [Aces] is getting the message in their tribe log without the character name instead of the correct tribe [Satchel of Richards].
[Aces] Log was filled with these, from at least 2 tribes possibly more.
 

Attachments

Top