Universal Script 📌
38.4k Views
29 Executions

Discord Chat Logger

Universal Script 📌
vqmpjay
vqmpjayPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

this basically makes your bot start sending the chat messages from the server ur in LGACY CHAT only

View Raw
--[[
re-scripted darks script cz his dumbahh got his website removed
i also fixed the syn.request shi

Tutorial:
make a discord webhook
copy the webhook url
put the webhooks url in the 'Your Discord Webhook Link Here!'

this basically makes your bot start sending the chat messages from the server ur in
--]]

local marketplaceService = game:GetService("MarketplaceService")
 
local isSuccessful, info = pcall(marketplaceService.GetProductInfo, marketplaceService, Game.PlaceId)
if isSuccessful then
 
local wh = 'Your Discord Webhook Link Here!'
local embed1 = {
       ['title'] = 'Beginning of Message logs on '..info.Name.." at "..tostring(os.date("%m/%d/%y at time %X"))
   }
local a = request({
   Url = wh,
   Headers = {['Content-Type'] = 'application/json'},
   Body = game:GetService("HttpService"):JSONEncode({['embeds'] = {embed1}, ['content'] = ''}),
   Method = "POST"
})
function logMsg(Webhook, Player, Message)
   local embed = {
       ['description'] = Player..": "..Message.."  " ..tostring(os.date("| time %X")) 
   }
   local a = request({
       Url = Webhook,
       Headers = {['Content-Type'] = 'application/json'},
       Body = game:GetService("HttpService"):JSONEncode({['embeds'] = {embed}, ['content'] = ''}),
       Method = "POST"
   })
end
for i,v in pairs(game.Players:GetPlayers()) do
   v.Chatted:Connect(function(msg)


Comments

1
Log in to join the conversation. Login
uwulax's profile picture
uwulax2 years ago(edited)

This is a pretty cool script ngl

1

Tags

More universal scripts

See all
Script hub
1.6M
2.0M
Bumped 2 hours ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
269.0k
114.4k
Bumped 2 hours ago
Key System
Script hub
171.2k
1.4M
Bumped 5 hours ago
Key System
Script hub
16.6k
3.2k
Bumped 7 hours ago
Key System
Paid
Script hub
17.2k
87.3k
Bumped 7 hours ago