commit
Updates
diff --git a/commands/debug.py b/commands/debug.py
index 1370547..3f0fb8d 100644
--- a/commands/debug.py
+++ b/commands/debug.py
@@ -5,9 +5,9 @@ from discord import app_commands
from discord.ext import commands
from discord.utils import format_dt, utcnow
import platform
+import psutil as psu
from sandrone import checks, config
from utils import components, errors, jp_storage
-import psutil as psu
# What the bot wants everywhere, on top of whatever individual commands
# ask for.
@@ -93,8 +93,7 @@ class Debug(commands.Cog):
self.bot = bot
debug = app_commands.Group(
- name="debug",
- description="(owner) Look inside the bot"
+ name="debug", description="(owner) Look inside the bot"
)
@debug.command(
@@ -118,9 +117,10 @@ class Debug(commands.Cog):
]
server = [
- f"Memory `{psu.virtual_memory().percent}%` · Disk Used `{psu.disk_usage('/').percent}%`",
+ f"Memory `{psu.virtual_memory().percent}%` · "
+ + f"Disk Used `{psu.disk_usage('/').percent}%`",
f"Booted <t:{int(psu.boot_time())}:R>",
- f"Running as `{psu.Process().username()}`"
+ f"Running as `{psu.Process().username()}`",
]
connection = [
diff --git a/sandrone/website.py b/sandrone/website.py
index 7c2afd7..c2d6959 100644
--- a/sandrone/website.py
+++ b/sandrone/website.py
@@ -164,6 +164,71 @@ async def robots(request: web.Request) -> web.Response:
)
+async def shardsPage(request: web.Request) -> web.FileResponse:
+ path = webAsset("shards.html")
+ if path is None:
+ raise web.HTTPInternalServerError(
+ text="web/shards.html is missing"
+ )
+ return web.FileResponse(path, status=203)
+
+
+async def shardsData(request: web.Request) -> web.Response:
+ bot = request.app[botKey]
+ shards: list[dict[str, Any]] = []
+
+ if bot is not None:
+ latencies = dict(getattr(bot, "latencies", None) or [])
+ shardCount = bot.shard_count or 1
+
+ for shardId in range(shardCount):
+ if latencies:
+ latency = latencies.get(shardId)
+ guilds = sum(
+ 1 for g in bot.guilds if (g.shard_id or 0) == shardId
+ )
+ else:
+ latency = bot.latency
+ guilds = len(bot.guilds)
+
+ shards.append(
+ {
+ "id": shardId,
+ "guilds": guilds,
+ "latency": (
+ round(latency * 1000)
+ if latency is not None and math.isfinite(latency)
+ else None
+ ),
+ }
+ )
+
+ payload = {"shardCount": len(shards), "shards": shards}
+ return web.json_response(
+ payload, headers={"Cache-Control": "no-store"}
+ )
+
+
+async def statusRedirect(request) -> web.HTTPMovedPermanently:
+ raise web.HTTPMovedPermanently("/shards")
+
+
+async def privacyPage(request: web.Request) -> web.FileResponse:
+ path = webAsset("privacy.html")
+ if path is None:
+ raise web.HTTPInternalServerError(
+ text="web/privacy.html is missing"
+ )
+ return web.FileResponse(path)
+
+
+async def termsPage(request: web.Request) -> web.FileResponse:
+ path = webAsset("terms.html")
+ if path is None:
+ raise web.HTTPInternalServerError(text="web/terms.html is missing")
+ return web.FileResponse(path)
+
+
async def notFound(request: web.Request) -> web.FileResponse:
path = webAsset("404.html")
if path is None:
@@ -185,7 +250,12 @@ def createApp(bot: Any = None) -> web.Application:
app[botKey] = bot
app[startedAtKey] = time.monotonic()
app.router.add_get("/", index)
+ app.router.add_get("/shards", shardsPage)
+ app.router.add_get("/status", statusRedirect)
+ app.router.add_get("/privacy", privacyPage)
+ app.router.add_get("/terms", termsPage)
app.router.add_get("/api/status", status)
+ app.router.add_get("/api/shards", shardsData)
app.router.add_get("/sitemap.xml", sitemap)
app.router.add_get("/robots.txt", robots)
app.router.add_get("/docs", openDocs)
diff --git a/web/assets/icons/circle-question.svg b/web/assets/icons/circle-question.svg
new file mode 100644
index 0000000..e65b671
--- /dev/null
+++ b/web/assets/icons/circle-question.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path d="M18 22H6V20H18V22ZM6 20H4V18H6V20ZM20 20H18V18H20V20ZM4 18H2V6H4V18ZM13 18H11V16H13V18ZM22 18H20V6H22V18ZM15 13H13V15H11V11H15V13ZM17 11H15V8H17V11ZM9 10H7V8H9V10ZM15 8H9V6H15V8ZM6 6H4V4H6V6ZM20 6H18V4H20V6ZM18 4H6V2H18V4Z"/></svg>
\ No newline at end of file
diff --git a/web/assets/scripts/shards.js b/web/assets/scripts/shards.js
new file mode 100644
index 0000000..059bea2
--- /dev/null
+++ b/web/assets/scripts/shards.js
@@ -0,0 +1,74 @@
+(async () => {
+ const grid = document.getElementById("shard-grid");
+ const summary = document.getElementById("shards-summary");
+ const updated = document.getElementById("shards-updated");
+ if (!grid || !summary) return;
+
+ const statusFor = (latency) => {
+ if (latency === null || latency === undefined) return { label: "Offline", tone: "off" };
+ if (latency > 250) return { label: "Degraded", tone: "warn" };
+ return { label: "Online", tone: "ok" };
+ };
+
+ const render = (payload) => {
+ const shards = Array.isArray(payload.shards) ? payload.shards : [];
+
+ if (!shards.length) {
+ summary.textContent = "No shards are reporting in right now.";
+ grid.replaceChildren();
+ return;
+ }
+
+ const totalGuilds = shards.reduce((sum, shard) => sum + (shard.guilds ?? 0), 0);
+ summary.textContent = shards.length === 1
+ ? `1 shard, ${totalGuilds} server${totalGuilds === 1 ? "" : "s"}.`
+ : `${shards.length} shards, ${totalGuilds} servers total.`;
+
+ grid.replaceChildren(...shards.map((shard) => {
+ const { label, tone } = statusFor(shard.latency);
+
+ const card = document.createElement("article");
+ card.className = "card shard-card";
+
+ const heading = document.createElement("h3");
+ heading.textContent = `Shard ${shard.id}`;
+ card.append(heading);
+
+ const statusLine = document.createElement("p");
+ statusLine.className = "shard-stat";
+ const dot = document.createElement("span");
+ dot.className = `dot dot-${tone}`;
+ statusLine.append(dot, document.createTextNode(label));
+ card.append(statusLine);
+
+ const guildsLine = document.createElement("p");
+ guildsLine.className = "shard-stat";
+ guildsLine.textContent = `${shard.guilds ?? 0} server${shard.guilds === 1 ? "" : "s"}`;
+ card.append(guildsLine);
+
+ const latencyLine = document.createElement("p");
+ latencyLine.className = "shard-stat";
+ latencyLine.textContent = typeof shard.latency === "number"
+ ? `${shard.latency}ms latency`
+ : "latency unknown";
+ card.append(latencyLine);
+
+ return card;
+ }));
+ };
+
+ const load = async () => {
+ try {
+ const response = await fetch("/api/shards", { cache: "no-store" });
+ if (!response.ok) throw new Error(`status ${response.status}`);
+ render(await response.json());
+ updated.textContent = `Last updated ${new Date().toLocaleTimeString()}.`;
+ updated.hidden = false;
+ } catch {
+ summary.textContent = "Could not reach the workshop. Retrying shortly.";
+ }
+ };
+
+ await load();
+ setInterval(load, 30000);
+})();
diff --git a/web/assets/scripts/status.js b/web/assets/scripts/status.js
new file mode 100644
index 0000000..76098bb
--- /dev/null
+++ b/web/assets/scripts/status.js
@@ -0,0 +1,32 @@
+(async () => {
+ const box = document.getElementById("status");
+ const text = document.getElementById("status-text");
+ if (!box || !text) return;
+
+ const duration = (seconds) => {
+ const d = Math.floor(seconds / 86400);
+ const h = Math.floor((seconds % 86400) / 3600);
+ const m = Math.floor((seconds % 3600) / 60);
+ if (d) return `${d}d ${h}h`;
+ if (h) return `${h}h ${m}m`;
+ return `${m}m`;
+ };
+
+ try {
+ const response = await fetch("/api/status", { cache: "no-store" });
+ if (!response.ok) return;
+ const status = await response.json();
+
+ const parts = ["Workshop online"];
+ if (status.version) parts.push(`v${status.version}`);
+ if (typeof status.uptime === "number") parts.push(`up ${duration(status.uptime)}`);
+ if (typeof status.servers === "number") {
+ parts.push(`${status.servers} server${status.servers === 1 ? "" : "s"}`);
+ }
+
+ text.textContent = parts.join(" · ");
+ box.hidden = false;
+ } catch {
+ /* the page reads fine without it */
+ }
+})();
\ No newline at end of file
diff --git a/web/style.css b/web/assets/stylesheets/style.css
similarity index 90%
rename from web/style.css
rename to web/assets/stylesheets/style.css
index 95e0ed9..188f1ca 100644
--- a/web/style.css
+++ b/web/assets/stylesheets/style.css
@@ -45,7 +45,14 @@
box-sizing: border-box;
}
+html {
+ height: 100%;
+}
+
body {
+ display: flex;
+ flex-direction: column;
+ min-height: 100%;
margin: 0;
font-size: 1rem;
line-height: 1.6;
@@ -274,9 +281,25 @@ h4 {
box-shadow: 0 0 0 3px rgb(67 181 129 / 18%);
}
+.dot-ok {
+ background: #43b581;
+ box-shadow: 0 0 0 3px rgb(67 181 129 / 18%);
+}
+
+.dot-warn {
+ background: #faa61a;
+ box-shadow: 0 0 0 3px rgb(250 166 26 / 18%);
+}
+
+.dot-off {
+ background: #ed4245;
+ box-shadow: 0 0 0 3px rgb(237 66 69 / 18%);
+}
+
/* Sections */
main {
+ flex: 1 0 auto;
padding-block: 0 4rem;
}
@@ -348,6 +371,49 @@ h2 {
font-size: 0.93rem;
}
+/* Shard cards */
+
+.shard-card h3 {
+ text-transform: none;
+ letter-spacing: normal;
+ font-size: 1.05rem;
+ color: var(--text);
+}
+
+.shard-stat {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ margin: 0.4rem 0 0;
+ color: var(--muted);
+ font-size: 0.93rem;
+}
+
+.shard-stat:first-of-type {
+ margin-top: 0.6rem;
+}
+
+/* Legal prose (privacy, terms) */
+
+.legal ul {
+ max-width: 44rem;
+ margin: 0 0 1rem;
+ padding-left: 1.25rem;
+ color: var(--muted);
+}
+
+.legal li {
+ margin: 0.4rem 0;
+}
+
+.legal li::marker {
+ color: var(--accent);
+}
+
+.legal li strong {
+ color: var(--text);
+}
+
/* Command groups */
.groups {
diff --git a/web/index.html b/web/index.html
index a605fc1..d632353 100644
--- a/web/index.html
+++ b/web/index.html
@@ -29,7 +29,7 @@
<meta name="theme-color" content="#0b0a0d">
<!-- Icons, Styles and Fonts -->
- <link rel="stylesheet" href="/style.css">
+ <link rel="stylesheet" href="/assets/stylesheets/style.css">
<link rel="icon" href="/assets/avatar.png" type="image/png">
<link rel="preload" href="/assets/fonts/IBMPlexSans-Regular.ttf" as="font" type="font/ttf" crossorigin>
@@ -134,8 +134,7 @@
<div class="cta">
<a class="button primary" href="/invite"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/plus.svg)"></span>Invite the bot</a>
- <a class="button" href="/docs"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/notes.svg)"></span>Read the docs</a>
- <a class="button" href="/support"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/message.svg)"></span>Support server</a>
+ <a class="button" href="/status"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/circle-question.svg)"></span>Status Page</a>
</div>
<p class="status" id="status" hidden>
@@ -283,7 +282,7 @@
the YouTube content itself — never anything about who asked for it.
</p>
<p class="more">
- <a href="https://docs.doughmination.gay/projects/sandrone/privacy/"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/shield.svg)"></span>Privacy policy</a>
+ <a href="/privacy"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/shield.svg)"></span>Privacy policy</a>
· <a href="https://docs.doughmination.gay/projects/sandrone/downloads/"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/download.svg)"></span>Hosted downloads →</a>
</p>
</section>
@@ -334,8 +333,8 @@
</div>
<div>
<h4>Legal</h4>
- <a href="https://docs.doughmination.gay/projects/sandrone/tos/"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/script-text.svg)"></span>Terms of Service</a>
- <a href="https://docs.doughmination.gay/projects/sandrone/privacy/"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/shield.svg)"></span>Privacy Policy</a>
+ <a href="/terms"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/script-text.svg)"></span>Terms of Service</a>
+ <a href="/privacy"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/shield.svg)"></span>Privacy Policy</a>
<a href="https://github.com/doughmination/sandrone/blob/main/licence.md"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/tag.svg)"></span>Licence</a>
</div>
</div>
@@ -346,40 +345,7 @@
</div>
</footer>
- <script>
- (async () => {
- const box = document.getElementById("status");
- const text = document.getElementById("status-text");
- if (!box || !text) return;
-
- const duration = (seconds) => {
- const d = Math.floor(seconds / 86400);
- const h = Math.floor((seconds % 86400) / 3600);
- const m = Math.floor((seconds % 3600) / 60);
- if (d) return `${d}d ${h}h`;
- if (h) return `${h}h ${m}m`;
- return `${m}m`;
- };
-
- try {
- const response = await fetch("/api/status", { cache: "no-store" });
- if (!response.ok) return;
- const status = await response.json();
-
- const parts = ["Workshop online"];
- if (status.version) parts.push(`v${status.version}`);
- if (typeof status.uptime === "number") parts.push(`up ${duration(status.uptime)}`);
- if (typeof status.servers === "number") {
- parts.push(`${status.servers} server${status.servers === 1 ? "" : "s"}`);
- }
-
- text.textContent = parts.join(" · ");
- box.hidden = false;
- } catch {
- /* the page reads fine without it */
- }
- })();
- </script>
+ <script src="/assets/scripts/status.js"></script>
</body>
</html>
diff --git a/web/privacy.html b/web/privacy.html
index e69de29..f8a4639 100644
--- a/web/privacy.html
+++ b/web/privacy.html
@@ -0,0 +1,295 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
+
+ <!-- Page Title -->
+ <title>Privacy Policy · Sandrone</title>
+
+ <!-- SEO Meta Tags -->
+ <meta name="description"
+ content="Sandrone's privacy policy: no database, no analytics, no user accounts. What the bot stores, what Discord sends it, and which third-party services individual commands talk to.">
+ <meta name="author" content="Clove Twilight">
+ <meta name="robots" content="index, follow">
+
+ <!-- Canonical URL -->
+ <link rel="canonical" href="https://sandrone.doughmination.gay/privacy">
+
+ <!-- iOS Web App Meta Tags -->
+ <meta name="mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+ <meta name="apple-mobile-web-app-title" content="Sandrone">
+ <link rel="apple-touch-icon" href="/assets/avatar.png">
+
+ <!-- Theme Color -->
+ <meta name="theme-color" content="#0b0a0d">
+
+ <!-- Icons, Styles and Fonts -->
+ <link rel="stylesheet" href="/assets/stylesheets/style.css">
+ <link rel="icon" href="/assets/avatar.png" type="image/png">
+ <link rel="preload" href="/assets/fonts/IBMPlexSans-Regular.ttf" as="font" type="font/ttf" crossorigin>
+
+ <!-- Open Graph / Discord / Facebook -->
+ <meta property="og:site_name" content="Sandrone">
+ <meta property="og:title" content="Privacy Policy — Sandrone">
+ <meta property="og:description"
+ content="No database, no analytics, no user accounts. What Sandrone stores, what Discord sends it, and which third-party services it talks to.">
+ <meta property="og:image" content="https://sandrone.doughmination.gay/assets/banner.png">
+ <meta property="og:image:width" content="1920">
+ <meta property="og:image:height" content="1206">
+ <meta property="og:image:alt" content="The Sandrone banner: the Seventh Fatui Harbinger's workshop.">
+ <meta property="og:type" content="website">
+ <meta property="og:url" content="https://sandrone.doughmination.gay/privacy">
+ <meta property="og:locale" content="en_GB">
+</head>
+
+<body>
+ <a class="skip" href="#content">Skip to content</a>
+
+ <header class="topbar">
+ <a class="brand" href="/">
+ <img src="/assets/avatar.png" alt="" width="32" height="32">
+ <span>Sandrone</span>
+ </a>
+ <nav>
+ <a href="/docs"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/notes.svg)"></span>Docs</a>
+ <a href="/#commands"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/commands.svg)"></span>Commands</a>
+ <a href="https://github.com/doughmination/sandrone"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/code.svg)"></span>Source</a>
+ </nav>
+ </header>
+
+ <section class="hero">
+ <div class="wrap">
+ <p class="eyebrow">Legal</p>
+ <h1>Privacy Policy</h1>
+ <p class="subtitle">Effective 11 September 2026</p>
+ <p class="lede">
+ Sandrone is a personal, hobby Discord bot. It has no database, no analytics, and no
+ user accounts. It writes three kinds of file to its host, none of them about you, and
+ this policy explains the little that does happen.
+ </p>
+ </div>
+ </section>
+
+ <main id="content" class="wrap legal">
+
+ <section aria-labelledby="stores">
+ <h2 id="stores">What Sandrone stores about you</h2>
+ <p class="section-lede">
+ Nothing. There is no database, no log of who ran what, and no profile kept on any
+ user. The bot writes <code>cog_state.json</code>, which records which command
+ modules the owner has switched off; it writes the temporary media files described
+ below; and it caches the game artwork <code>/genshin</code> draws its cards from,
+ which is Genshin Impact character art, not anything of yours. None of the three
+ contains user data of any kind: nothing links a stored file to the person who
+ requested it.
+ </p>
+ </section>
+
+ <section aria-labelledby="downloads">
+ <h2 id="downloads">Hosted downloads (<code>/yt-dlp</code>)</h2>
+ <p class="section-lede">
+ <code>/yt-dlp</code> fetches a YouTube link as a file. When the result is small
+ enough it is attached to the reply and nothing is kept. When it is too big to
+ attach, the file is saved on the bot's host and the reply links to it instead.
+ </p>
+ <ul>
+ <li>
+ What is stored is the media file itself, the YouTube video or audio. It is not
+ tagged with your name, your user ID, the server, or the time, and there is no
+ index of who asked for what. Alongside it sits a small record used for caching
+ — the video's ID, the format, the title, the resolution and the size —
+ which likewise identifies no one.
+ </li>
+ <li>
+ Each file lives in its own directory with a random, unguessable name. Anyone who
+ has the link can download it while it exists; it is not otherwise listed or
+ searchable.
+ </li>
+ <li>
+ Files are served only from <code>sandrone.doughmination.gay</code>. See
+ <a href="https://docs.doughmination.gay/projects/sandrone/official-links/">Official links</a>.
+ </li>
+ <li>
+ A sweep deletes each file once it is older than the retention window, 24 hours by
+ default. Asking for the same video again while its copy still exists hands back
+ the same link and restarts that 24-hour timer, so a file in active use is not
+ swept out from under it; fetching the link directly does the same.
+ </li>
+ <li>
+ The bot refuses to keep any single file larger than a configured cap (2 GiB
+ by default), so one large pull cannot fill the host's disk.
+ </li>
+ </ul>
+ <p class="section-lede">
+ If you would rather a download not sit on the host at all, keep it under your
+ server's attachment limit, or do not use the command.
+ <a href="https://docs.doughmination.gay/projects/sandrone/downloads/">Hosted downloads</a>
+ covers the mechanics in full.
+ </p>
+ </section>
+
+ <section aria-labelledby="discord-sends">
+ <h2 id="discord-sends">What Discord sends when you run a command</h2>
+ <p class="section-lede">
+ When you use a slash command, Discord delivers your user ID, your username, and
+ whatever text you typed into the command's options. Sandrone uses these in memory
+ to build its reply and then discards them. They are not written down, not retained
+ after the reply is sent, and not shared with anyone beyond the third parties listed
+ below.
+ </p>
+ <p class="section-lede">
+ The one thing that can outlast the reply is a hosted <code>/yt-dlp</code> file,
+ covered above, and that is the media only, never your ID or the text you typed.
+ </p>
+ <p class="section-lede">
+ Sandrone does not have the message content intent. It cannot read your
+ conversations — only what you type into a slash command's options.
+ </p>
+ <p class="section-lede">
+ For the puppet-incident feature
+ (<a href="https://docs.doughmination.gay/projects/sandrone/commands/#sandrones-moods">Sandrone's moods</a>),
+ the bot does notice when a message is sent, so it knows which channel is currently
+ active. All it keeps is a single "most recently active channel" pointer, held in
+ memory and wiped on restart. It records no message content — it cannot read
+ any — no author, and no history; the previous channel is simply overwritten by
+ the next.
+ </p>
+ </section>
+
+ <section aria-labelledby="third-party">
+ <h2 id="third-party">Third-party services</h2>
+ <p class="section-lede">
+ Some commands work by asking another service on your behalf. When you use one, the
+ search term you typed is sent to that service, which has its own privacy policy and
+ its own logs. Sandrone has no control over what they keep.
+ </p>
+ <ul>
+ <li><strong>GitHub</strong>, which receives the username or repository you name in <code>/github</code> and <code>/repo</code>.</li>
+ <li><strong>Codeberg</strong>, which receives the username you name in <code>/codeberg</code>.</li>
+ <li><strong>Wikipedia</strong>, which receives your search term from <code>/wikipedia</code>.</li>
+ <li><strong>Urban Dictionary</strong>, which receives your search term from <code>/urban-dictionary</code>.</li>
+ <li><strong>PluralKit</strong>, which is linked by <code>/snippet</code>'s plurality explainer, and which <code>/pksystem</code> and <code>/pkfront</code> query directly. Those two send the Discord ID of whoever they're run on (you, or the user you name) to PluralKit's API, to look up that account's registered system.</li>
+ <li><strong>Pluralpedia</strong> and <strong>morethanone.info</strong>, which are linked by <code>/snippet</code>'s plurality explainer.</li>
+ <li><strong>girlcockx.com</strong>, which receives the post URL you give <code>/tweet</code>, to build the embed.</li>
+ <li><strong>Bluesky's public API</strong>, which receives the handle and post ID you give <code>/bluesky</code>. The resulting embed links to <strong>xsky.app</strong>.</li>
+ <li><strong>WHOIS servers</strong>, which receive the domain or IP you give <code>/whois</code>. The lookup starts at IANA and follows referrals to the registry and registrar for that name, so more than one operator sees the query. It never carries anything about you — WHOIS has no facility for it.</li>
+ <li><strong>The Doughmination API</strong> (<code>doughmination.uk</code>), which <code>/profile</code> queries with the Discord ID of whoever the command is run on, and which <code>/genshin</code> queries with the Genshin UID you type. That UID is a game account number you supply, not something Sandrone knows about you, and it is not recorded anywhere.</li>
+ <li><strong>Enka.Network</strong>, which is where the Doughmination API gets Genshin account data from. Your UID reaches it through that API when you run <code>/genshin</code>; nothing about your Discord account does.</li>
+ <li><strong>The Argos Translate package index</strong>, which <code>/translate</code> contacts to list and download language models. The translation itself runs locally on the bot's host — the text you type is <strong>not</strong> sent to a translation service.</li>
+ <li><strong>cataas</strong>, which serves <code>/kitty</code> a random image and receives nothing about you.</li>
+ <li><strong>m.doughmination.gay</strong>, the CDN that serves images and GIFs, which your Discord client fetches the way it fetches any embedded image.</li>
+ </ul>
+ <p class="section-lede">
+ One thing worth being explicit about: <code>/stats</code> calls
+ <strong>ip-api.com</strong> to report where the bot's own server is hosted. It never
+ sends your IP address, and it cannot, because the bot does not have it. The result
+ is cached until the next restart, so it is asked at most once per run of the bot.
+ </p>
+ </section>
+
+ <section aria-labelledby="logs">
+ <h2 id="logs">Logs</h2>
+ <p class="section-lede">
+ When a command fails, the bot prints the command's name and the error text to its
+ own console on the host machine. That output can include a search term you passed
+ if the term is what caused the error. It is not stored long-term, not published, and
+ not linked to your account.
+ </p>
+ <p class="section-lede">
+ The console also records module loads and unloads, the count of expired downloads
+ removed by each sweep, and the channel a puppet incident was posted into (its name
+ and server, never a user). None of it mentions a user. Nothing else is logged.
+ </p>
+ </section>
+
+ <section aria-labelledby="age-restricted">
+ <h2 id="age-restricted">Age-restricted commands</h2>
+ <p class="section-lede">
+ A small number of commands are marked age-restricted. Discord itself decides who may
+ run them and where, based on your account age setting and the channel's rating.
+ Sandrone does not record who used them.
+ </p>
+ </section>
+
+ <section aria-labelledby="children">
+ <h2 id="children">Children</h2>
+ <p class="section-lede">
+ Sandrone is used through Discord, which requires its users to be at least 13, or
+ older where local law says so. It is not directed at children, and since it
+ collects nothing, it holds no children's data to speak of.
+ </p>
+ </section>
+
+ <section aria-labelledby="rights">
+ <h2 id="rights">Your rights</h2>
+ <p class="section-lede">
+ Because nothing about you is stored, there is nothing to export, correct, or delete,
+ so a deletion request would have no data to act on. If you would like to check that
+ for yourself, the bot's entire source is public and linked at the bottom of this
+ page.
+ </p>
+ <p class="section-lede">
+ Your data on Discord itself is a separate matter, governed by
+ <a href="https://discord.com/privacy">Discord's Privacy Policy</a>.
+ </p>
+ </section>
+
+ <section aria-labelledby="changes">
+ <h2 id="changes">Changes</h2>
+ <p class="section-lede">
+ If this policy changes, the effective date above changes with it, and the edit will
+ be visible in the site's commit history.
+ </p>
+ </section>
+
+ <section aria-labelledby="contact">
+ <h2 id="contact">Contact</h2>
+ <p class="section-lede">
+ Questions about this policy, or anything else privacy-related: email
+ <code>[email protected]</code>, or ask in the
+ <a href="/support">support server</a>.
+ </p>
+ <p class="section-lede">
+ The source is at
+ <a href="https://github.com/doughmination/sandrone">github.com/doughmination/sandrone</a>,
+ and every claim on this page can be checked against it.
+ </p>
+ </section>
+
+ </main>
+
+ <footer>
+ <div class="wrap footer-inner">
+ <div class="footer-links">
+ <div>
+ <h4>Bot</h4>
+ <a href="/invite"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/plus.svg)"></span>Invite</a>
+ <a href="/support"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/message.svg)"></span>Support server</a>
+ <a href="/docs"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/notes.svg)"></span>Documentation</a>
+ </div>
+ <div>
+ <h4>Source</h4>
+ <a href="https://github.com/doughmination/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/code.svg)"></span>GitHub</a>
+ <a href="https://codeberg.org/clove/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/git-branch.svg)"></span>Codeberg</a>
+ <a href="https://backup.doughmination.gay/clove/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/server.svg)"></span>dough-git</a>
+ </div>
+ <div>
+ <h4>Legal</h4>
+ <a href="/terms"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/script-text.svg)"></span>Terms of Service</a>
+ <a href="/privacy"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/shield.svg)"></span>Privacy Policy</a>
+ <a href="https://github.com/doughmination/sandrone/blob/main/licence.md"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/tag.svg)"></span>Licence</a>
+ </div>
+ </div>
+ <p class="disclaimer">
+ "Sandrone" is a Genshin Impact character. This is an unofficial fan project, not
+ affiliated with or endorsed by HoYoverse.
+ </p>
+ </div>
+ </footer>
+
+</body>
+
+</html>
diff --git a/web/shards.html b/web/shards.html
new file mode 100644
index 0000000..07b00b4
--- /dev/null
+++ b/web/shards.html
@@ -0,0 +1,121 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
+
+ <!-- Page Title -->
+ <title>Shards · Sandrone</title>
+
+ <!-- SEO Meta Tags -->
+ <meta name="description"
+ content="Live shard status for Sandrone: guild counts and gateway latency for every shard, updated in real time.">
+ <meta name="author" content="Clove Twilight">
+ <meta name="robots" content="noindex, follow">
+
+ <!-- Canonical URL -->
+ <link rel="canonical" href="https://sandrone.doughmination.gay/shards">
+
+ <!-- iOS Web App Meta Tags -->
+ <meta name="mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+ <meta name="apple-mobile-web-app-title" content="Sandrone">
+ <link rel="apple-touch-icon" href="/assets/avatar.png">
+
+ <!-- Theme Color -->
+ <meta name="theme-color" content="#0b0a0d">
+
+ <!-- Icons, Styles and Fonts -->
+ <link rel="stylesheet" href="/assets/stylesheets/style.css">
+ <link rel="icon" href="/assets/avatar.png" type="image/png">
+ <link rel="preload" href="/assets/fonts/IBMPlexSans-Regular.ttf" as="font" type="font/ttf" crossorigin>
+
+ <!-- Open Graph / Discord / Facebook -->
+ <meta property="og:site_name" content="Sandrone">
+ <meta property="og:title" content="Shards — Sandrone">
+ <meta property="og:description"
+ content="Live shard status for Sandrone: guild counts and gateway latency for every shard, updated in real time.">
+ <meta property="og:image" content="https://sandrone.doughmination.gay/assets/banner.png">
+ <meta property="og:image:width" content="1920">
+ <meta property="og:image:height" content="1206">
+ <meta property="og:image:alt" content="The Sandrone banner: the Seventh Fatui Harbinger's workshop.">
+ <meta property="og:type" content="website">
+ <meta property="og:url" content="https://sandrone.doughmination.gay/shards">
+ <meta property="og:locale" content="en_GB">
+</head>
+
+<body>
+ <a class="skip" href="#content">Skip to content</a>
+
+ <header class="topbar">
+ <a class="brand" href="/">
+ <img src="/assets/avatar.png" alt="" width="32" height="32">
+ <span>Sandrone</span>
+ </a>
+ <nav>
+ <a href="/docs"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/notes.svg)"></span>Docs</a>
+ <a href="/#commands"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/commands.svg)"></span>Commands</a>
+ <a href="https://github.com/doughmination/sandrone"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/code.svg)"></span>Source</a>
+ </nav>
+ </header>
+
+ <section class="hero">
+ <div class="wrap">
+ <p class="eyebrow">Workshop diagnostics</p>
+ <h1>Shards</h1>
+ <p class="subtitle">Every shard, watched in real time.</p>
+ <p class="lede">
+ Sandrone currently runs as a single process. This page lists each shard it is
+ responsible for, how many servers sit on it, and how long the gateway round trip
+ currently takes.
+ </p>
+ </div>
+ </section>
+
+ <main id="content" class="wrap">
+
+ <section aria-labelledby="shards-heading" id="shards">
+ <h2 id="shards-heading">Shard status</h2>
+ <p class="section-lede" id="shards-summary">Checking in with the workshop…</p>
+
+ <div class="cards" id="shard-grid" aria-live="polite"></div>
+
+ <p class="note" id="shards-updated" hidden></p>
+ </section>
+
+ </main>
+
+ <footer>
+ <div class="wrap footer-inner">
+ <div class="footer-links">
+ <div>
+ <h4>Bot</h4>
+ <a href="/invite"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/plus.svg)"></span>Invite</a>
+ <a href="/support"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/message.svg)"></span>Support server</a>
+ <a href="/docs"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/notes.svg)"></span>Documentation</a>
+ </div>
+ <div>
+ <h4>Source</h4>
+ <a href="https://github.com/doughmination/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/code.svg)"></span>GitHub</a>
+ <a href="https://codeberg.org/clove/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/git-branch.svg)"></span>Codeberg</a>
+ <a href="https://backup.doughmination.gay/clove/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/server.svg)"></span>dough-git</a>
+ </div>
+ <div>
+ <h4>Legal</h4>
+ <a href="/terms"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/script-text.svg)"></span>Terms of Service</a>
+ <a href="/privacy"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/shield.svg)"></span>Privacy Policy</a>
+ <a href="https://github.com/doughmination/sandrone/blob/main/licence.md"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/tag.svg)"></span>Licence</a>
+ </div>
+ </div>
+ <p class="disclaimer">
+ "Sandrone" is a Genshin Impact character. This is an unofficial fan project, not
+ affiliated with or endorsed by HoYoverse.
+ </p>
+ </div>
+ </footer>
+
+ <script src="/assets/scripts/shards.js"></script>
+</body>
+
+</html>
diff --git a/web/terms.html b/web/terms.html
index e69de29..b6d28d1 100644
--- a/web/terms.html
+++ b/web/terms.html
@@ -0,0 +1,238 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
+
+ <!-- Page Title -->
+ <title>Terms of Service · Sandrone</title>
+
+ <!-- SEO Meta Tags -->
+ <meta name="description"
+ content="Sandrone's terms of service: acceptable use, availability, licensing, and the legal basics of using a free, personal Discord bot.">
+ <meta name="author" content="Clove Twilight">
+ <meta name="robots" content="index, follow">
+
+ <!-- Canonical URL -->
+ <link rel="canonical" href="https://sandrone.doughmination.gay/terms">
+
+ <!-- iOS Web App Meta Tags -->
+ <meta name="mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+ <meta name="apple-mobile-web-app-title" content="Sandrone">
+ <link rel="apple-touch-icon" href="/assets/avatar.png">
+
+ <!-- Theme Color -->
+ <meta name="theme-color" content="#0b0a0d">
+
+ <!-- Icons, Styles and Fonts -->
+ <link rel="stylesheet" href="/assets/stylesheets/style.css">
+ <link rel="icon" href="/assets/avatar.png" type="image/png">
+ <link rel="preload" href="/assets/fonts/IBMPlexSans-Regular.ttf" as="font" type="font/ttf" crossorigin>
+
+ <!-- Open Graph / Discord / Facebook -->
+ <meta property="og:site_name" content="Sandrone">
+ <meta property="og:title" content="Terms of Service — Sandrone">
+ <meta property="og:description"
+ content="Acceptable use, availability, licensing, and the legal basics of using a free, personal Discord bot.">
+ <meta property="og:image" content="https://sandrone.doughmination.gay/assets/banner.png">
+ <meta property="og:image:width" content="1920">
+ <meta property="og:image:height" content="1206">
+ <meta property="og:image:alt" content="The Sandrone banner: the Seventh Fatui Harbinger's workshop.">
+ <meta property="og:type" content="website">
+ <meta property="og:url" content="https://sandrone.doughmination.gay/terms">
+ <meta property="og:locale" content="en_GB">
+</head>
+
+<body>
+ <a class="skip" href="#content">Skip to content</a>
+
+ <header class="topbar">
+ <a class="brand" href="/">
+ <img src="/assets/avatar.png" alt="" width="32" height="32">
+ <span>Sandrone</span>
+ </a>
+ <nav>
+ <a href="/docs"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/notes.svg)"></span>Docs</a>
+ <a href="/#commands"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/commands.svg)"></span>Commands</a>
+ <a href="https://github.com/doughmination/sandrone"><span class="icon nav-icon" aria-hidden="true" style="--icon:url(/assets/icons/code.svg)"></span>Source</a>
+ </nav>
+ </header>
+
+ <section class="hero">
+ <div class="wrap">
+ <p class="eyebrow">Legal</p>
+ <h1>Terms of Service</h1>
+ <p class="subtitle">Effective 6 September 2026</p>
+ <p class="lede">
+ Sandrone is a free, personal project run for fun. These terms cover the use of the
+ bot in any Discord server or installation.
+ </p>
+ </div>
+ </section>
+
+ <main id="content" class="wrap legal">
+
+ <section aria-labelledby="accepting">
+ <h2 id="accepting">Accepting these terms</h2>
+ <p class="section-lede">
+ Using Sandrone means you accept what is written here. If you do not, do not use the
+ bot; if you administer a server, remove it.
+ </p>
+ </section>
+
+ <section aria-labelledby="which-bot">
+ <h2 id="which-bot">Which bot these terms cover</h2>
+ <p class="section-lede">
+ These terms apply to the bot with the Discord application ID
+ <code>1539185764904996974</code>, and to its official links only:
+ <code>discord.com</code> and <code>discord.gg</code>,
+ <code>sandrone.is-a.bot</code>, and <code>sandrone.doughmination.gay</code>.
+ </p>
+ <p class="section-lede">
+ Anything else calling itself Sandrone is not covered by these terms, is not
+ operated by the owner, and should not be trusted. See
+ <a href="https://docs.doughmination.gay/projects/sandrone/official-links">Official links</a>
+ for how to verify what you are talking to.
+ </p>
+ </section>
+
+ <section aria-labelledby="acceptable-use">
+ <h2 id="acceptable-use">Acceptable use</h2>
+ <p class="section-lede">You agree not to:</p>
+ <ul>
+ <li>use the bot to harass, threaten, or abuse anyone;</li>
+ <li>use it to post content that is illegal where you or the server are;</li>
+ <li>deliberately spam commands, or automate them to exhaust rate limits;</li>
+ <li>use <code>/yt-dlp</code> to fetch content you have no right to redistribute, or treat its hosted links as permanent or private storage; they are public to anyone holding the link and are deleted automatically;</li>
+ <li>attempt to break, overload, or gain unauthorised access to the bot or the host it runs on;</li>
+ <li>impersonate the bot, or represent another bot or service as being Sandrone.</li>
+ </ul>
+ </section>
+
+ <section aria-labelledby="age-restricted">
+ <h2 id="age-restricted">Age-restricted content</h2>
+ <p class="section-lede">
+ Some commands return adult content and are flagged as age-restricted. Discord
+ enforces where and by whom those may be used. Running them outside an appropriate
+ channel is a misuse of the bot and of Discord.
+ </p>
+ </section>
+
+ <section aria-labelledby="availability">
+ <h2 id="availability">Availability</h2>
+ <p class="section-lede">
+ Sandrone is a hobby bot run on personal hardware. There is no uptime guarantee, no
+ support commitment, and no promised response time. It may go offline, lose
+ features, change behaviour, or be retired entirely, at any time and without notice.
+ </p>
+ <p class="section-lede">
+ Individual commands may be switched off at short notice — for maintenance, or
+ because something they depend on has broken. No notice is owed for that either.
+ </p>
+ </section>
+
+ <section aria-labelledby="suspension">
+ <h2 id="suspension">Suspension of access</h2>
+ <p class="section-lede">
+ The owner may block any user, server, or installation from using the bot, for any
+ reason, without notice or explanation.
+ </p>
+ </section>
+
+ <section aria-labelledby="warranty">
+ <h2 id="warranty">No warranty, and limits on liability</h2>
+ <p class="section-lede">
+ Sandrone is provided “as is”, without warranty of any kind. To the
+ fullest extent the law allows, the owner is not liable for any loss or damage
+ arising from using it, from it being unavailable, or from anything it returns. Some
+ commands relay content from third-party services, and the accuracy of that content
+ is not guaranteed.
+ </p>
+ <p class="section-lede">
+ Nothing here limits liability for death or personal injury caused by negligence, for
+ fraud, or for anything else that cannot lawfully be limited.
+ </p>
+ </section>
+
+ <section aria-labelledby="third-party">
+ <h2 id="third-party">Third-party services</h2>
+ <p class="section-lede">
+ Several commands fetch data from services the owner does not run, listed in the
+ <a href="/privacy">Privacy Policy</a>. Their terms apply to their content.
+ </p>
+ </section>
+
+ <section aria-labelledby="changes">
+ <h2 id="changes">Changes to these terms</h2>
+ <p class="section-lede">
+ These terms may change. The effective date above will change with them, and
+ continuing to use the bot after that means accepting the new version.
+ </p>
+ </section>
+
+ <section aria-labelledby="licensing">
+ <h2 id="licensing">Licensing</h2>
+ <p class="section-lede">
+ The bot's source code is released under the Doughmination Authorised Source Licence
+ (DASL-1.2). It is source-available, not open source: you may read it and you may
+ fork it to prepare a contribution, but running your own instance, deploying it,
+ redistributing it, or commercialising it requires written authorisation.
+ <a href="https://docs.doughmination.gay/projects/sandrone/development">Development</a>
+ summarises what that means in practice, and the
+ <a href="https://github.com/doughmination/sandrone/blob/main/licence.md">full text</a>
+ governs.
+ </p>
+ <p class="section-lede">
+ The "Sandrone" name and the Doughmination branding are not licensed with the code.
+ </p>
+ <p class="section-lede">
+ “Sandrone” is a character from Genshin Impact, used here for a personal
+ fan project. This bot is unofficial and is not affiliated with, endorsed by, or
+ sponsored by HoYoverse or COGNOSPHERE. Genshin Impact and all related names,
+ imagery, and content remain the property of their respective owners.
+ </p>
+ </section>
+
+ <section aria-labelledby="governing-law">
+ <h2 id="governing-law">Governing law</h2>
+ <p class="section-lede">
+ These terms are governed by the law of England and Wales.
+ </p>
+ </section>
+
+ </main>
+
+ <footer>
+ <div class="wrap footer-inner">
+ <div class="footer-links">
+ <div>
+ <h4>Bot</h4>
+ <a href="/invite"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/plus.svg)"></span>Invite</a>
+ <a href="/support"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/message.svg)"></span>Support server</a>
+ <a href="/docs"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/notes.svg)"></span>Documentation</a>
+ </div>
+ <div>
+ <h4>Source</h4>
+ <a href="https://github.com/doughmination/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/code.svg)"></span>GitHub</a>
+ <a href="https://codeberg.org/clove/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/git-branch.svg)"></span>Codeberg</a>
+ <a href="https://backup.doughmination.gay/clove/sandrone"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/server.svg)"></span>dough-git</a>
+ </div>
+ <div>
+ <h4>Legal</h4>
+ <a href="/terms"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/script-text.svg)"></span>Terms of Service</a>
+ <a href="/privacy"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/shield.svg)"></span>Privacy Policy</a>
+ <a href="https://github.com/doughmination/sandrone/blob/main/licence.md"><span class="icon" aria-hidden="true" style="--icon:url(/assets/icons/tag.svg)"></span>Licence</a>
+ </div>
+ </div>
+ <p class="disclaimer">
+ "Sandrone" is a Genshin Impact character. This is an unofficial fan project, not
+ affiliated with or endorsed by HoYoverse.
+ </p>
+ </div>
+ </footer>
+
+</body>
+
+</html>