Hi so, I'm currently using this script to log all messages sent in my game to a Discord channel. I wanted to know if there was a way to also add the time and date of the message so for example: "[month-day/hour-minute-second] message"
Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
local data = {
content = msg;
username = plr.Name;
avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..plr.UserId
}
HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
end)
end)