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 = ''
- -- Simply just replace https://discordapp.com in your Webhook URL with https://discord.osyr.is
- -- Everything should work exactly the same.
- -- 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