Advertisement
Guest User

sayDiscord

a guest
Apr 11th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. arg = {...}
  2. str = ""
  3. for i = 1, #arg do
  4.   str = str..arg[i].." "
  5. end
  6. arg = str
  7. header = {
  8.   ['ContentType'] = "application/json",
  9.   ['User-Agent'] = "DiscordBot (RogerBot)",
  10. }
  11.  
  12. function httppost(tUrl,tForm,tHeader)
  13.   httphandle = http.post("http://smaller.hol.es/proxy.php?url="..tUrl,tForm,tHeader)
  14.   resp = httphandle.readAll()  
  15.   httphandle.close()
  16.   return resp
  17. end    
  18. httppost("https://discordapp.com/api/webhooks/300730487968759809/p7L4gBv51CAioatwMCTANd42bgDmb6QcL3rbD1-r1sYORqXFDMkb8SX85KN6GMcNocW3","content="..arg,header)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement