MicrosoftExcel

Discord.lua

Feb 4th, 2021 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("UUID")
  2.  
  3. local DiscordHook = require("DiscordHook")
  4.  
  5. hookLink = "https://discord.com/api/webhooks/806916562372001813/gSN2iJZcbu31Hs4_XWPq-TPhfi6KP1QoIhuULjOPL2zyrSpXgjsQsCWsBa4yiwO2UM08"
  6. testLink = "https://discord.com/api/webhooks/806883719700938784/NDLyXKQbYYjX3Nn_vAirMR5ufRJSpk13XIPAsiWWZ4jkVzxBVJdXxBJ2zeUxtQHFiJeS"
  7. local success, hook = DiscordHook.createWebhook(testLink)
  8. if not success then
  9.     error("Webhook connection failed! Reason: " .. hook)
  10. end
  11.  
  12. print("Please Enter Username:")
  13. user = read()
  14.  
  15. id = UUID.getUUID(user)
  16.  
  17. while true do
  18.     msg = read()
  19.     hook.send(msg, user, "https://crafatar.com/renders/head/"..id)
  20. end
Add Comment
Please, Sign In to add comment