Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- http = component.internet
- JSON = require("JSON") ---https://github.com/sziberov/OpenComputers/blob/master/lib/json.lua
- sender = {username = "Tired",avatar_url = "https://www.atomicheritage.org/sites/default/files/styles/large/public/lesson_plans/atom-1472657_1920.png?itok=Pon5eH8h",content = "HELLO WORLD!"}
- headers = {["Content-Type"] = "application/json",["User-Agent"] = "computercraft/1.98.2"}
- encodedsender = JSON:encode(sender)
- request = http.request("https://discord.com/api/webhooks/...", encodedsender, headers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement