61 lines
3.4 KiB
Plaintext
61 lines
3.4 KiB
Plaintext
<% content_for(:html_head) do %>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Raleway:wght@500">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.3/css/bootstrap.min.css" integrity="sha512-SbiR/eusphKoMVVXysTKG/7VseWii+Y3FdHrt0EpKgpToZeemhqHeZeLWLhJutz/2ut2Vw1uQEj2MbRF+TVBUA==" crossorigin="anonymous" referrerpolicy="no-referrer">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.3/js/bootstrap.min.js" integrity="sha512-1/RvZTcCDEUjY/CypiMz+iqqtaoQfAITmNSJY17Myp4Ms5mdxPS5UV7iOfdZoxcGhzFbOm6sntTKJppjvuhg4g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<% end %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
E621 Status | Webhook Prerequisites
|
|
<% end %>
|
|
|
|
<%# TODO: code links %>
|
|
<div id="fuck-off">
|
|
<a class="btn btn-primary btn-authorize ms-2" href="<%= discord_e621_ws_status_webhook_path %>">I don't care, just get on with it!</a>
|
|
</div>
|
|
<h2 class="text-center">
|
|
Webhook Prerequisites
|
|
</h2>
|
|
<p class="text-center">
|
|
A Discord webhook is a good way to get status updates right inside of Discord, the minute we know about changes.<br>
|
|
The link at the bottom of the page will take you to an OAuth authorization page, which will create a webhook and give the information to us.<br>
|
|
We do not accept previously create webhooks, this OAuth flow must be followed.
|
|
</p>
|
|
<p class="text-center">
|
|
Don't trust me? That's fine, I wouldn't trust an online stranger either.<br>
|
|
You can view the code for this site <a href="#todo">here</a>.<br>
|
|
The code for handling setting up webhooks is specifically in <a href="#todo">TODO</a>.
|
|
</p>
|
|
<p class="text-center">
|
|
There's a hard limit of one webhook per channel, and 5 webhooks per server.<br>
|
|
The latter <i>may</i> be negotiable, contact <a href="https://e621.net/users/Donovan_DMC">Donovan_DMC</a> if needs be.<br>
|
|
To disable a status check, simply delete the webhook.<br>
|
|
The webhook will be marked as "managed" by us, so it serves no other use.
|
|
</p>
|
|
<p class="text-center">
|
|
Some other miscellaneous information.<br>
|
|
Webhook details are not stored in an encrypted format, but the database they are in is disconnected from the internet.<br>
|
|
The OAuth authorization does not add a bot or application to your server, just the webhook.<br>
|
|
You can view an example of some status updates <a href="https://cdn.discordapp.com/attachments/486330319331655700/1097823650108940358/image.png">here</a>.<br>
|
|
Updates are posted as soon as we know about them currently. In the future, updates may be delayed to avoid spam.
|
|
</p>
|
|
<h1 class="text-center">
|
|
With all of that out of the way, the buttons.
|
|
</h1>
|
|
<p class="text-center">
|
|
The minimal button will only authorize the webhook.<br>
|
|
The other button will authorize both the webhook and your user info (which is optional).<br>
|
|
If authorized, the id of the user who created the webhook will be stored on our servers alongside the webhook information.<br>
|
|
This is purely for informational purposes.<br>
|
|
</p>
|
|
|
|
<div class="position-relative mt-4">
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="col-sm-12 text-center">
|
|
<a class="btn btn-danger btn-authorize me-2" href="<%= discord_e621_ws_status_webhook_path(min: true) %>">Authorize (Minimal)</a>
|
|
<a class="btn btn-success btn-authorize ms-2" href="<%= discord_e621_ws_status_webhook_path %>">Authorize</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|