Universal Script 📌
38.4k Views
37 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

Updates

  1. Script edited: Create script

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
Universal Script 📌
1.6k
5.9k
Bumped 3 minutes ago
Script hub
164.6k
562.3k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Script hub
3.0k
3.8k
Bumped 4 hours ago
Script hub
274
1.2k
14 hours ago
Key System

Script hub

#9 today

Verified script badgeBlendHub | Easy + Quick

Universal Script 📌
172
87
Approved 6 hours ago
Script hub
178
886
Approved 7 hours ago
Script hub
97
193
Approved 7 hours ago