Mercurial Hosting > disearch
comparison src/add_server.html.luan @ 15:d0b8e1a8fc69
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 00:12:08 -0600 |
parents | 80105b716a62 |
children |
comparison
equal
deleted
inserted
replaced
14:80105b716a62 | 15:d0b8e1a8fc69 |
---|---|
47 | 47 |
48 local url = "https://discord.com/api/guilds/"..guild_id | 48 local url = "https://discord.com/api/guilds/"..guild_id |
49 local config = Config.get() | 49 local config = Config.get() |
50 local options = { | 50 local options = { |
51 headers = { | 51 headers = { |
52 ["User-Agent"] = "fuck you" -- for retarded Cloudflare | 52 ["User-Agent"] = "Disearch" -- for retarded Cloudflare |
53 Authorization = "Bot "..config.discord.bot_token | 53 Authorization = "Bot "..config.discord.bot_token |
54 } | 54 } |
55 } | 55 } |
56 local result = uri(url,options).read_text() | 56 local result = uri(url,options).read_text() |
57 --logger.info(result) | 57 --logger.info(result) |