Discord Logging
Discord integration is configured in shared/sh_cfg.lua
.
Webhooks
Payments
Achievements
Admin logs
General logs
Configuration Example
cfg = {}
cfg.Discord = {
enabled = true,
webhooks = {
payments = "YOUR_DISCORD_WEBHOOK",
achievements = "YOUR_DISCORD_WEBHOOK",
admin = "YOUR_DISCORD_WEBHOOK",
general = "YOUR_DISCORD_WEBHOOK"
},
-- Bot information
botName = "Tow Job Bot",
botAvatar = "YOUR_BOT_AVATAR_URL",
-- Webhook settings
timeout = 5000,
retries = 3,
-- Color scheme for different log types
colors = {
payment = 65280,
bonus = 16776960,
achievement = 16711935,
levelup = 3447003,
admin = 15158332,
warning = 16753920,
info = 3447003
},
-- Embed settings
thumbnails = {
payment = "https://i.imgur.com/money-icon.png",
achievement = "https://i.imgur.com/trophy-icon.png",
levelup = "https://i.imgur.com/star-icon.png",
admin = "https://i.imgur.com/admin-icon.png"
}
}
return cfg
Last updated