Advertisement
Guest User

Untitled

a guest
Nov 26th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. component = require("component")
  2. http = component.internet
  3. JSON = require("JSON") ---https://github.com/sziberov/OpenComputers/blob/master/lib/json.lua
  4.  
  5.  
  6. 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!"}
  7.  
  8. headers = {["Content-Type"] = "application/json",["User-Agent"] = "computercraft/1.98.2"}
  9.  
  10.  
  11. encodedsender = JSON:encode(sender)
  12.  
  13. request = http.request("https://discord.com/api/webhooks/...", encodedsender, headers)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement