Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("UUID")
- local DiscordHook = require("DiscordHook")
- hookLink = "https://discord.com/api/webhooks/806916562372001813/gSN2iJZcbu31Hs4_XWPq-TPhfi6KP1QoIhuULjOPL2zyrSpXgjsQsCWsBa4yiwO2UM08"
- testLink = "https://discord.com/api/webhooks/806883719700938784/NDLyXKQbYYjX3Nn_vAirMR5ufRJSpk13XIPAsiWWZ4jkVzxBVJdXxBJ2zeUxtQHFiJeS"
- local success, hook = DiscordHook.createWebhook(testLink)
- if not success then
- error("Webhook connection failed! Reason: " .. hook)
- end
- print("Please Enter Username:")
- user = read()
- id = UUID.getUUID(user)
- while true do
- msg = read()
- hook.send(msg, user, "https://crafatar.com/renders/head/"..id)
- end
Add Comment
Please, Sign In to add comment