Useful Sample Scripts
You can see ready-to-paste snippets here. Make sure you read the documentation first. (See previous page)
Game Joiner:
local function sendJoinScript()
LRM_SEND_WEBHOOK(
"https://discord.com/api/webhooks/4382635989158629991/9LtiYbxWZUCfeKKlMhmO2K5k5CSvsBxPck8iFCeMNyY8XkBeaY_8-SHWWJosYFRqV00Q",
{
username = "Cat Joiner",
embeds = {
{
title = "Join Script",
description = "Sent by discord user: <@%DISCORD_ID%>",
color = 0x00FF00,
fields = {
{
name = "Job ID:",
value = "```" .. LRM_SANITIZE(game.JobId, "[a-fA-F0-9\\-]{36}") .. "```",
inline = false
},
{
name = "Join script:",
value = "```lua\ngame:GetService('TeleportService'):TeleportToPlaceInstance(" ..
LRM_SANITIZE(game.PlaceId, "[0-9]{4,22}") ..
", '" ..
LRM_SANITIZE(game.JobId, "[a-fA-F0-9\\-]{36}") ..
"', game:GetService('Players').LocalPlayer)```",
inline = false
}
}
}
}
}
)
end

Detailed Execution Logs:
local function sendDetailedExecutionLog()
LRM_SEND_WEBHOOK(
"https://discord.com/api/webhooks/4382635989158629991/9LtiYbxWZUCfeKKlMhmO2K5k5CSvsBxPck8iFCeMNyY8XkBeaY_8-SHWWJosYFRqV00Q",
{
username = "Catkeeper",
embeds = {
{
title = "User executed!",
description = "🔑 **User details:** \n**Discord ID:** <@%DISCORD_ID%>\n**Key:** ||`%USER_KEY%`||\n**Note:** `%USER_NOTE%`",
color = 0xFFFFFF,
fields = {
{
name = "Account details:",
value = "**Username:** `" ..
LRM_SANITIZE(game:GetService("Players").LocalPlayer.Name, "[a-zA-Z0-9_]{2,60}") ..
"`\n**User ID:** `" ..
LRM_SANITIZE(game:GetService("Players").LocalPlayer.UserId, "[0-9]{2,35}") ..
"`",
inline = false
},
{
name = "IP:",
value = "%CLIENT_IP% :flag_%COUNTRY_CODE%:",
inline = true
}
}
}
}
}
)
end

Unique Item Alert:
local function sendUniqueItemAlert(catType, catAmount)
LRM_SEND_WEBHOOK(
"https://discord.com/api/webhooks/4382635989158629991/9LtiYbxWZUCfeKKlMhmO2K5k5CSvsBxPck8iFCeMNyY8XkBeaY_8-SHWWJosYFRqV00Q",
{
username = "Cat Detected",
embeds = {
{
title = "Rare cat found!",
description = "💎 Found by: <@%DISCORD_ID%>",
color = 0xFF00FF,
thumbnail = {
url = "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftr.rbxcdn.com%2F30DAY-DynamicHeadCostume-BC61C024C184A6545E79DC2737B83AB8-Png%2F420%2F420%2FDynamicHeadCostume%2FPng%2FnoFilter&f=1&nofb=1&ipt=2d150e25fd93aade56a30c3b6eda21a373bd8a7053a606b2dc39b283d23d62f6"
},
fields = {
{
name = "Cat details:",
value = "**Type:** " .. LRM_SANITIZE(catType, "(Super Rare|Rare|Common) Cat"),
inline = true
},
{
name = "Quantity:",
value = LRM_SANITIZE(catAmount, "[0-9]{1,7}") .. "x",
inline = true
}
}
}
}
}
)
end

Script Error Logger:
local function errorLogger(errorMsg)
-- relay script errors to webhook
LRM_SEND_WEBHOOK(
"https://discord.com/api/webhooks/4382635989158629991/9LtiYbxWZUCfeKKlMhmO2K5k5CSvsBxPck8iFCeMNyY8XkBeaY_8-SHWWJosYFRqV00Q",
{
username = "Cat Error",
content = "<@1239352966750797907> Urgent check required.",
embeds = {
{
title = "Script Error",
description = "⚠️ An error occurred in the Catkeeper script.\nScript belongs to: <@%DISCORD_ID%>\n**Key:** ||%USER_KEY%||\n**Note:** %USER_NOTE%",
color = 0xFF0000,
fields = {
{
name = "Error Message:",
value = "```" .. errorMsg .. "```",
inline = false
}
}
}
}
}
)
end

Last updated