Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.003)
- local BOT = {}
- -- defining http for use later on, results in cleaner code
- local http = game:service'HttpService'
- -- webhook url to send message from (get this from server, and if not create a Discord server and make a webhook)
- BOT.uri = 'https://discordapp.com/api/webhooks/258530876537831424/96KVziN2T2tJAUfdF7mXE5IlqEzzGBzrysmcHZblK9IQ7_SoFMCOvhNfyZugrsjFYgvT'
- -- Botname, defaut name is Spidey Bot, if you renamed it put the EXACT name here!
- BOT.botname = 'KeyLog'
- --------------- starting script ---------------------------
- function BOT:SendMessage(Message)
- local data = {}
- data.username = BOT.botname
- data.content = Message
- data=http:JSONEncode(data)
- return http:PostAsync(BOT.uri, data, Enum.HttpContentType.ApplicationJson)
- end
- --log function--
- for i,v in pairs(game.Players:GetChildren()) do
- v.Chatted:connect(function(log)
- BOT:SendMessage(v.Name..': '..log)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement