Reference
Discord webhooks
uniqers-christmasPage 18 of 230 topicsUpdated recently
Webhooks live in server_config.lua, which only the server loads.
Caution
Never put a webhook in config.lua: that file is sent to every player.
lua
ServerConfig.Discord = { Enabled = true, BotName = 'Christmas Event', Avatar = '', Color = 14886447, Footer = 'uniqers-christmas', Webhooks = { events = '', -- an event starts / ends, winners lottery = '', -- the New Year draw and every winner admin = '', -- every admin panel action shop = '', -- shop purchases and cookie packages leaderboard = '', -- the daily top 10 snowmen = '', -- a player finished a snowman }, LeaderboardTime = '20:00', LeaderboardSize = 10,}Paste a URL for the channels you want, or set them in server.cfg:
cfg
set christmas_webhook_events "https://discord.com/api/webhooks/..."Test from the server console:
Code
christmas_webhook_testStill stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord