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://discord.osyr.is/api/webhooks/409814145807155202/uUpdAjMx7BS33r5qH7gd_fK8z94MhOqfZOggxdPfNqfDvEnbQMOu2f29AlLrYC-IyUxt'
- -- 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